test/tools/javac/multicatch/Pos05.java

changeset 2034
ac6ec071c2b2
parent 554
9d9f26857129
child 2227
998b10c43157
equal deleted inserted replaced
2033:fdfbc5f0c4ed 2034:ac6ec071c2b2
93 Code_attribute ea = (Code_attribute)testMethod.attributes.get(Attribute.Code); 93 Code_attribute ea = (Code_attribute)testMethod.attributes.get(Attribute.Code);
94 if (testMethod == null) { 94 if (testMethod == null) {
95 throw new Error("Code attribute for test() method not found"); 95 throw new Error("Code attribute for test() method not found");
96 } 96 }
97 Exception_data firstExceptionTable = null; 97 Exception_data firstExceptionTable = null;
98 for (int i = 0 ; i < ea.exception_table_langth; i++) { 98 for (int i = 0 ; i < ea.exception_table_length; i++) {
99 if (firstExceptionTable == null) { 99 if (firstExceptionTable == null) {
100 firstExceptionTable = ea.exception_table[i]; 100 firstExceptionTable = ea.exception_table[i];
101 } 101 }
102 if (ea.exception_table[i].handler_pc != firstExceptionTable.handler_pc || 102 if (ea.exception_table[i].handler_pc != firstExceptionTable.handler_pc ||
103 ea.exception_table[i].start_pc != firstExceptionTable.start_pc || 103 ea.exception_table[i].start_pc != firstExceptionTable.start_pc ||

mercurial