Closed
Description
E.g. try this in a native image (where there is a MANIFEST.MF):
for (URL url : Collections.list(ClassLoader
.getSystemResources("META-INF/MANIFEST.MF"))) {
System.out.println("URL: " + url);
Properties properties = new Properties();
properties.load(url.openConnection().getInputStream());
System.out.println("Properties: " + properties);
System.out.println("New URL: " + new URL(url.toString()));
}
It blows up on the new URL()
, despite the fact that the url is readable, so the properties look fine.