4eeb61299f
Fixed java.lang.ArrayIndexOutOfBoundsException in com.sun.tools.classfile.Code_attribute.getInstructions() for methods with no instructions Reviewed-by: vromero
52 lines
985 B
Plaintext
52 lines
985 B
Plaintext
class Malformed {
|
|
0xCAFEBABE;
|
|
0; // minor version
|
|
57; // version
|
|
[] { // Constant Pool
|
|
; // first element is empty
|
|
Method #2 #3; // #1
|
|
class #4; // #2
|
|
NameAndType #5 #6; // #3
|
|
Utf8 "java/lang/Object"; // #4
|
|
Utf8 "<init>"; // #5
|
|
Utf8 "()V"; // #6
|
|
class #8; // #7
|
|
Utf8 "Malformed"; // #8
|
|
Utf8 "Code"; // #9
|
|
} // Constant Pool
|
|
|
|
0x0020; // access
|
|
#7;// this_cpx
|
|
#2;// super_cpx
|
|
|
|
[] { // Interfaces
|
|
} // Interfaces
|
|
|
|
[] { // fields
|
|
} // fields
|
|
|
|
[] { // methods
|
|
{ // Member
|
|
0x0000; // access
|
|
#5; // name_cpx
|
|
#6; // sig_cpx
|
|
[] { // Attributes
|
|
Attr(#9) { // Code
|
|
1; // max_stack
|
|
1; // max_locals
|
|
Bytes[]{
|
|
}
|
|
[] { // Traps
|
|
} // end Traps
|
|
[] { // Attributes
|
|
} // Attributes
|
|
} // end Code
|
|
} // Attributes
|
|
} // Member
|
|
} // methods
|
|
|
|
[] { // Attributes
|
|
} // Attributes
|
|
} // end class Malformed
|
|
|