Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901935

Sigtest can't setup Java9 b157 if no packages specified (reading module-info.class)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: st4.0
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Introduced In Build:
      b16
    • Introduced In Version:
    • Resolved In Build:
      b17
    • Verification:
      Verified

      Description

      $J9/bin/java -jar sigtestdev.jar setup -filename all.sig -classpath $J9/lib/modules -xjimage $J9/bin/jimage
      Class path: "/opt/java/j9_157/lib/modules"
      Constant checking: on
      Found in total: 45130 classesjava.lang.ClassFormatError: Index out of the constant pool bounds
      at com.sun.tdk.signaturetest.loaders.BinaryClassDescrLoader$BinaryClassDescription.getConstant(BinaryClassDescrLoader.java:125)
      at com.sun.tdk.signaturetest.loaders.BinaryClassDescrLoader$BinaryClassDescription.getName(BinaryClassDescrLoader.java:176)
      at com.sun.tdk.signaturetest.loaders.BinaryClassDescrLoader$BinaryClassDescription.access$1200(BinaryClassDescrLoader.java:56)
      at com.sun.tdk.signaturetest.loaders.BinaryClassDescrLoader.readMethods(BinaryClassDescrLoader.java:716)
      at com.sun.tdk.signaturetest.loaders.BinaryClassDescrLoader.readClass(BinaryClassDescrLoader.java:462)
      at com.sun.tdk.signaturetest.loaders.BinaryClassDescrLoader.readClass(BinaryClassDescrLoader.java:408)
      at com.sun.tdk.signaturetest.loaders.BinaryClassDescrLoader.load(BinaryClassDescrLoader.java:246)
      at com.sun.tdk.signaturetest.core.ClassHierarchyImpl.load(ClassHierarchyImpl.java:233)
      at com.sun.tdk.signaturetest.core.ClassHierarchyImpl.load(ClassHierarchyImpl.java:187)
      at com.sun.tdk.signaturetest.Setup.getPackageClasses(Setup.java:589)
      at com.sun.tdk.signaturetest.Setup.create(Setup.java:364)
      at com.sun.tdk.signaturetest.Setup.run(Setup.java:139)
      at com.sun.tdk.signaturetest.Setup.main(Setup.java:119)
      at com.sun.tdk.signaturetest.Main.main(Main.java:115)
      Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:45)
      at java.base/java.lang.String.charAt(String.java:704)
      at com.sun.tdk.signaturetest.model.ClassDescription.isAnonymousClass(ClassDescription.java:103)
      at com.sun.tdk.signaturetest.core.ClassHierarchyImpl.isAccessible(ClassHierarchyImpl.java:360)
      at com.sun.tdk.signaturetest.core.ClassHierarchyImpl.getClassInfo(ClassHierarchyImpl.java:409)
      at com.sun.tdk.signaturetest.core.ClassHierarchyImpl.load(ClassHierarchyImpl.java:251)
      at com.sun.tdk.signaturetest.core.ClassHierarchyImpl.load(ClassHierarchyImpl.java:187)
      at com.sun.tdk.signaturetest.Setup.getPackageClasses(Setup.java:589)
      at com.sun.tdk.signaturetest.Setup.create(Setup.java:364)
      at com.sun.tdk.signaturetest.Setup.run(Setup.java:139)
      at com.sun.tdk.signaturetest.Setup.main(Setup.java:119)
      at com.sun.tdk.signaturetest.Main.main(Main.java:115)

        Attachments

          Activity

            People

            Assignee:
            ersh Mikhail Ershov (Inactive)
            Reporter:
            ersh Mikhail Ershov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: