CLHSDB "dumpclass" command produces classes with invalid field descriptors

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: hotspot
    • None
    • b17

      CommandProcessor command "dumpclass" produces classes with invalid field descriptors.

      `ClhsdbDumpclass` uses javap to verify classes validity.
      Javap prints errors related to invalid constant pool entries, however the exit code is 0 and `ClhsdbDumpclass` test pass with invalid entries.
       
      Work on JDK-8294969 "Convert jdk.jdeps javap to use the Classfile API" triggered `ClhsdbDumpclass` test to start failing on invalid entries.

      Root cause of the problem is in `sun.jvm.hotspot.oops.InstanceKlass::getFieldSignatureIndex` returning `getGenericSignatureIndex` instead of `getSignatureIndex`.


            Assignee:
            Adam Sotona
            Reporter:
            Adam Sotona
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: