Skip to content

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

Closed

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.

Activity

  1. self-assigned this
    on Aug 20, 2018
  2. cstancu commented on Mar 14, 2019

    @cstancu
    Member

    Fixed in 427e54b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions