]
Shigeru Chiba commented on JASSIST-264:
---------------------------------------
I fixed this issue.
avassist.ModuleClassPath throws NoSuchMethodError when running on
Jigsaw EA build
---------------------------------------------------------------------------------
Key: JASSIST-264
URL:
https://issues.jboss.org/browse/JASSIST-264
Project: Javassist
Issue Type: Bug
Reporter: Mandy Chung
Assignee: Shigeru Chiba
Project Jigsaw EA build is available for download at
http://openjdk.java.net/projects/jigsaw/ea
The Jigsaw EA build is the latest prototype implementation of JSR 376, the Java Platform
Module System, that implements the proposals to resolve the JSR 376 open issues:
http://openjdk.java.net/projects/jigsaw/spec/issues/
java.lang.NoSuchMethodError: java.lang.reflect.Layer.parent()Ljava/util/Optional;
at javassist.ModuleClassPath.<init>(ModuleClassPath.java:53)
at javassist.ModuleClassPath.<init>(ModuleClassPath.java:39)
at javassist.ClassPoolTail.appendSystemPath(ClassPoolTail.java:249)
at javassist.ClassPool.appendSystemPath(ClassPool.java:944)
at javassist.ClassPool.<init>(ClassPool.java:179)
is calling java.lang.reflect.Layer::parent method. Layer::parent method is not present
due to the solution #NonHierarchicalLayers issue.
Looks like ModuleClassPath class is added to resolved JASSIST-261 and unclear why
Layer::parent is needed. But looks like this is related to #ClassFilesAsResources issue
in JDK 9 that encapsulate .class file from access.
The Jigsaw EA build has resolved #ClassFilesAsResources to allow
ClassLoader::getResource* methods to access .class files. Note that this is not in JDK 9
yet. Please subscribe to jigsaw-dev(a)openjdk.java.net for announcement.