jdk-24/test/langtools/tools/javac/8236697/Cyclic.jcod
Adam Sotona 63ade9c49c 8236697: Stack overflow with cyclic hierarchy in class file
Implemented minimal necessary cycle detection to avoid stack overflow in c.s.t.j.code.Types::asSuper

Reviewed-by: vromero
2020-06-08 16:07:03 -04:00

30 lines
477 B
Plaintext

class Cyclic {
0xCAFEBABE;
0; // minor version
57; // version
[] { // Constant Pool
; // first element is empty
class #2; // #1
Utf8 "Cyclic"; // #2
class #4; // #3
Utf8 "java/lang/Object"; // #4
} // Constant Pool
0x0600; // access
#1;// this_cpx
#3;// super_cpx
[] { // Interfaces
#1;
} // Interfaces
[] { // fields
} // fields
[] { // methods
} // methods
[] { // Attributes
} // Attributes
} // end class Cyclic