{"id":"2df8813cf9bc943c","repo":"junit-team/junit5","slug":"implement-scanforresourcesinclasspathroot-uri-res","errorCode":null,"errorMessage":"Implement scanForResourcesInClasspathRoot(URI, ResourceFilter) instead","messagePattern":"Implement scanForResourcesInClasspathRoot\\(URI, ResourceFilter\\) instead","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"junit-platform-commons/src/main/java/org/junit/platform/commons/support/scanning/ClasspathScanner.java","lineNumber":111,"sourceCode":"\t * that match the specified {@code resourceFilter} predicate.\n\t *\n\t * <p>The classpath scanning algorithm searches recursively in subpackages\n\t * beginning with the root of the classpath.\n\t *\n\t * @param root the URI for the classpath root in which to scan; never\n\t * {@code null}\n\t * @param resourceFilter the resource type filter; never {@code null}\n\t * @return a list of all such resources found; never {@code null}\n\t * but potentially empty\n\t * @deprecated Please implement\n\t * {@link #scanForResourcesInClasspathRoot(URI, ResourceFilter)} instead\n\t */\n\t@API(status = DEPRECATED, since = \"1.14\")\n\t@Deprecated(since = \"1.14\", forRemoval = true)\n\t@SuppressWarnings(\"removal\")\n\tdefault List<org.junit.platform.commons.support.Resource> scanForResourcesInClasspathRoot(URI root,\n\t\t\tPredicate<org.junit.platform.commons.support.Resource> resourceFilter) {\n\t\tthrow new UnsupportedOperationException(\n\t\t\t\"Implement scanForResourcesInClasspathRoot(URI, ResourceFilter) instead\");\n\t}\n\n\t/**\n\t * Find all {@linkplain Resource resources} in the supplied classpath {@code root}\n\t * that match the specified {@code resourceFilter} predicate.\n\t *\n\t * <p>The classpath scanning algorithm searches recursively in subpackages\n\t * beginning with the root of the classpath.\n\t *\n\t * @param basePackageName the name of the base package in which to start\n\t * scanning; must not be {@code null} and must be valid in terms of Java\n\t * syntax\n\t * @param resourceFilter the resource type filter; never {@code null}\n\t * @return a list of all such resources found; never {@code null}\n\t * but potentially empty\n\t * @since 1.14\n\t */","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/junit-team/junit5/blob/956246301e03d757539f7b76dd5a91f298637563/junit-platform-commons/src/main/java/org/junit/platform/commons/support/scanning/ClasspathScanner.java#L93-L129","documentation":"Error \"Implement scanForResourcesInClasspathRoot(URI, ResourceFilter) instead\" thrown in junit-team/junit5.","triggerScenarios":"Thrown at junit-platform-commons/src/main/java/org/junit/platform/commons/support/scanning/ClasspathScanner.java:111 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"956246301e03d757539f7b76dd5a91f298637563","analyzedAt":"2026-08-04T19:25:17.049Z","schemaVersion":2}