Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8305490

CLHSDB "dumpclass" command produces classes with invalid field descriptors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 21
    • 21
    • hotspot
    • None
    • b17

    Description

      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`.


      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: