equal
deleted
inserted
replaced
98 for (String methodToFind : methodsToFind) { |
98 for (String methodToFind : methodsToFind) { |
99 for (Method method : classFile.methods) { |
99 for (Method method : classFile.methods) { |
100 if (method.getName(classFile.constant_pool).equals(methodToFind)) { |
100 if (method.getName(classFile.constant_pool).equals(methodToFind)) { |
101 numberOfmethodsFound++; |
101 numberOfmethodsFound++; |
102 Code_attribute code = (Code_attribute) method.attributes.get("Code"); |
102 Code_attribute code = (Code_attribute) method.attributes.get("Code"); |
103 Assert.check(code.exception_table_langth == expectedExceptionTable.length, |
103 Assert.check(code.exception_table_length == expectedExceptionTable.length, |
104 "The ExceptionTable found has a length different to the expected one"); |
104 "The ExceptionTable found has a length different to the expected one"); |
105 int i = 0; |
105 int i = 0; |
106 for (Exception_data entry: code.exception_table) { |
106 for (Exception_data entry: code.exception_table) { |
107 Assert.check(entry.start_pc == expectedExceptionTable[i][0] && |
107 Assert.check(entry.start_pc == expectedExceptionTable[i][0] && |
108 entry.end_pc == expectedExceptionTable[i][1] && |
108 entry.end_pc == expectedExceptionTable[i][1] && |