URLClassLoader.getResources(“”) (empty resource name) not giving roots of jars
问题 Consider a URLClassLoader parameterized with a collection of URL s which is a mix of expanded directories and jar files. For example: URL[] urls = new URL[] { new URL("file:/D:/work/temp/jars/spring-security-core-3.2.0.RELEASE.jar"), new URL("file:/D:/work/temp/jars/spring-security-config-3.2.0.RELEASE.jar"), ... new URL("file:/D:/work/temp/domain/bin/"), new URL("file:/D:/work/temp/web/bin/"), ... } URLClassLoader cl = new URLClassLoader(urls); The classloader correctly handles getResources(