Skip to content
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

Loading classes from multi-release jars does not work #6790

Closed
aguibert opened this issue Mar 5, 2019 · 0 comments · Fixed by #6798
Closed

Loading classes from multi-release jars does not work #6790

aguibert opened this issue Mar 5, 2019 · 0 comments · Fixed by #6798
Assignees
Labels
in:Application Services release bug This bug is present in a released version of Open Liberty release:19003 team:Zombie Apocalypse

Comments

@aguibert
Copy link
Contributor

aguibert commented Mar 5, 2019

In Java 9, Multi-Release jars were added: https://openjdk.java.net/jeps/238

In short, this allows classes to be placed in different locations, such as:

jar root
  - A.class
  - B.class
  - C.class
  - D.class
  - META-INF
     - versions
        - 9
           - A.class
           - B.class
        - 10
           - A.class

This is handled automatically by URLClassLoader, and also by JarFile. However, liberty classloading does not make use of either of these constructs when it comes to classloading.

We will need to make additional changes in classloading and/or the artifact layer in order to support this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Application Services release bug This bug is present in a released version of Open Liberty release:19003 team:Zombie Apocalypse
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants