langtools/test/tools/javac/T8024039/NoDeadCodeGenerationOnTrySmtTest.java
changeset 20236 32da2c913ac4
parent 19923 4895f15b3845
child 26100 bb7dd001d190
equal deleted inserted replaced
20235:7834123e35dc 20236:32da2c913ac4
    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] &&