[jboss-jira] [JBoss JIRA] (JASSIST-264) avassist.ModuleClassPath throws NoSuchMethodError when running on Jigsaw EA build
Shigeru Chiba (JIRA)
issues at jboss.org
Tue Dec 20 04:19:00 EST 2016
[ https://issues.jboss.org/browse/JASSIST-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13340549#comment-13340549 ]
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 at openjdk.java.net for announcement.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list