Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dsyer opened this issue Aug 20, 2018 · 1 comment
Closed
Assignees

Comments

@dsyer
Copy link

dsyer commented Aug 20, 2018

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.

@cstancu
Copy link
Member

cstancu commented Mar 14, 2019

Fixed in 427e54b.

@cstancu cstancu closed this as completed Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants