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

jdis changing semantics - fixes the constantvalue_index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      A test with an invalid constant value index in the jcod/jasm is expected produce the exact behavior in the transformed class it produces, so that the JVM can be tested to catch this error and throw a ClassFormatError. But jdis fixes this and hence loading succeeds.

        [] { // Fields
          { // field
            0x0018; // access
            #17; // name_index
            #11; // descriptor_index
            [] { // Attributes
              Attr(#9) { // ConstantValue
                #20;
              } // end of ConstantValue

            lkuskov Leonid Kuskov
            pchinnasamy Prabushankar Chinnasamy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: