-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
None
-
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
[] { // Fields
{ // field
0x0018; // access
#17; // name_index
#11; // descriptor_index
[] { // Attributes
Attr(#9) { // ConstantValue
#20;
} // end of ConstantValue