Skip to content

Classpath resources have URLs or URL handlers that are not fully implemented #623

Closed
@dsyer

Description

@dsyer

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions