Skip to content

Update JVMClassFileContainer#getClassURL to comply with Module System #100

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

Merged
merged 5 commits into from
Jul 16, 2018

Conversation

gayanW
Copy link
Collaborator

@gayanW gayanW commented Jul 15, 2018

This updates JVMClassFileContainer#getClassURL to comply with the URI structure used in the new Java Module System.

This is related to the issue #50 which is about JPF failing to load model classes from jpf-classes.jar due to different URI structure of the .class files being introuduced in Java Module System. The previous workaround introudced by the PR #51 is specifically for the jpf-classes.jar. JPF will still fail to locate classes from the other jar files.

Thus this reverts it. And make a implementation changes to JVMClassFileContainer#getClassURL which is JPF's universal container for holding Java class files.

This reverts commit 1e02daf as it is
just a workaround to load  model classes from jpf-classes.jar

JPF is still unable to resove classes from other jars, hence reverting
it.
gayanW added 4 commits July 16, 2018 08:27
The path returned from JVMClassFileContainer#getClassURL does not
include the module name. This fixes it.

Before:
/path/to/container/java/lang/Object.class

After:
/path/to/container/java.base/java/lang/Object.class
JVMClassFileContainer#getClassEntryURL is introudced in
5647907
JVMClassFileContainer#getClassEntryURL is introudced in
5647907
@cyrille-artho cyrille-artho merged commit be3e389 into javapathfinder:java-10 Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants