Uploaded image for project: 'Javassist'
  1. Javassist
  2. JASSIST-264

avassist.ModuleClassPath throws NoSuchMethodError when running on Jigsaw EA build

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.22.0-CR1
    • Labels:
      None

      Description

      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@openjdk.java.net for announcement.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                chiba Shigeru Chiba
                Reporter:
                mlchung Mandy Chung
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: