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

JDWP command 'ConstantPool' returns wrong number of constant pool entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-svc
    • b93
    • generic
    • generic
    • Verified

      Specification for JDWP command ReferenceType.ConstantPool says that out data contains 'count' value which is "Total number of constant pool entries", actually this command returns number of entries + 1. I think command returns value of 'constant_pool_count' item of the Class File Format, but "The value of the constant_pool_count item is equal to the number of entries in the constant_pool table plus one". So, this behavior differs from one described in specification.

            swamyv Swamy Venkataramanappa
            sboikovsunw Semen Boikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: