diff options
author | Frederic Fusier | 2008-06-27 16:04:50 +0000 |
---|---|---|
committer | Frederic Fusier | 2008-06-27 16:04:50 +0000 |
commit | bd6803034b95b7e0dd8c0cbcd0aead0a5c726f65 (patch) | |
tree | 27611318284414829d25a09ce9b040291ac31cf0 /org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest_1_4.java | |
parent | 9ef1e97f6b56081e8537310fc409f77c2ce56944 (diff) | |
download | eclipse.jdt.core-bd6803034b95b7e0dd8c0cbcd0aead0a5c726f65.tar.gz eclipse.jdt.core-bd6803034b95b7e0dd8c0cbcd0aead0a5c726f65.tar.xz eclipse.jdt.core-bd6803034b95b7e0dd8c0cbcd0aead0a5c726f65.zip |
HEAD - Clean-up pass 1: add 'this.' to fields +remove 'this.' to msg send + remove trailing white spaces
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest_1_4.java')
-rw-r--r-- | org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest_1_4.java | 3306 |
1 files changed, 1653 insertions, 1653 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest_1_4.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest_1_4.java index 4912477d74..034325d4e1 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest_1_4.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest_1_4.java @@ -34,7 +34,7 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { public ClassFileReaderTest_1_4(String name) { super(name); } - + /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=15051 */ @@ -51,20 +51,20 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " return new A().get();\n" + " }\n" + "};"; - String expectedOutput = - " // Method descriptor #19 ()I\n" + - " // Stack: 3, Locals: 1\n" + - " public int foo();\n" + - " 0 new A001$1$A [20]\n" + - " 3 dup\n" + - " 4 aload_0 [this]\n" + - " 5 invokespecial A001$1$A(A001) [22]\n" + - " 8 invokevirtual A001$1$A.get() : int [25]\n" + - " 11 ireturn\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 12] local: this index: 0 type: A001\n"; + String expectedOutput = + " // Method descriptor #19 ()I\n" + + " // Stack: 3, Locals: 1\n" + + " public int foo();\n" + + " 0 new A001$1$A [20]\n" + + " 3 dup\n" + + " 4 aload_0 [this]\n" + + " 5 invokespecial A001$1$A(A001) [22]\n" + + " 8 invokevirtual A001$1$A.get() : int [25]\n" + + " 11 ireturn\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 12] local: this index: 0 type: A001\n"; checkClassFile("A001", source, expectedOutput); } @@ -80,23 +80,23 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 1\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 3 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 6, line: 4]\n" + - " [pc: 12, line: 5]\n" + - " Local variable table:\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 1\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 3 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 6, line: 4]\n" + + " [pc: 12, line: 5]\n" + + " Local variable table:\n" + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n"; checkClassFile("A002", source, expectedOutput); } - + /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26098 */ @@ -112,33 +112,33 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " System.out.println(bar());\n" + " }\n" + "}"; - String expectedOutput = - " // Method descriptor #15 ()I\n" + - " // Stack: 1, Locals: 1\n" + - " public int bar();\n" + - " 0 iconst_0\n" + - " 1 ireturn\n" + - " Line numbers:\n" + - " [pc: 0, line: 4]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 2] local: this index: 0 type: A003\n" + - " \n" + - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " public void foo();\n" + - " 0 getstatic java.lang.System.out : java.io.PrintStream [17]\n" + - " 3 aload_0 [this]\n" + - " 4 invokevirtual A003.bar() : int [23]\n" + - " 7 invokevirtual java.io.PrintStream.println(int) : void [25]\n" + - " 10 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 8]\n" + - " [pc: 10, line: 9]\n" + - " Local variable table:\n" + + String expectedOutput = + " // Method descriptor #15 ()I\n" + + " // Stack: 1, Locals: 1\n" + + " public int bar();\n" + + " 0 iconst_0\n" + + " 1 ireturn\n" + + " Line numbers:\n" + + " [pc: 0, line: 4]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 2] local: this index: 0 type: A003\n" + + " \n" + + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " public void foo();\n" + + " 0 getstatic java.lang.System.out : java.io.PrintStream [17]\n" + + " 3 aload_0 [this]\n" + + " 4 invokevirtual A003.bar() : int [23]\n" + + " 7 invokevirtual java.io.PrintStream.println(int) : void [25]\n" + + " 10 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 8]\n" + + " [pc: 10, line: 9]\n" + + " Local variable table:\n" + " [pc: 0, pc: 11] local: this index: 0 type: A003\n"; checkClassFile("A003", source, expectedOutput); } - + /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 */ @@ -155,32 +155,32 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 3\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 bipush 6\n" + - " 4 istore_2 [i]\n" + - " 5 iload_2 [i]\n" + - " 6 bipush 6\n" + - " 8 if_icmpne 22\n" + - " 11 iload_1 [b]\n" + - " 12 ifne 22\n" + - " 15 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 18 iload_2 [i]\n" + - " 19 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 22 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 4]\n" + - " [pc: 5, line: 5]\n" + - " [pc: 11, line: 6]\n" + - " [pc: 15, line: 7]\n" + - " [pc: 22, line: 9]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 23] local: args index: 0 type: java.lang.String[]\n" + - " [pc: 2, pc: 23] local: b index: 1 type: boolean\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 3\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 bipush 6\n" + + " 4 istore_2 [i]\n" + + " 5 iload_2 [i]\n" + + " 6 bipush 6\n" + + " 8 if_icmpne 22\n" + + " 11 iload_1 [b]\n" + + " 12 ifne 22\n" + + " 15 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 18 iload_2 [i]\n" + + " 19 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 22 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 4]\n" + + " [pc: 5, line: 5]\n" + + " [pc: 11, line: 6]\n" + + " [pc: 15, line: 7]\n" + + " [pc: 22, line: 9]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 23] local: args index: 0 type: java.lang.String[]\n" + + " [pc: 2, pc: 23] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 23] local: i index: 2 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -200,25 +200,25 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpne 16\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpne 16\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -238,17 +238,17 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 4] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 4] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 4] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -267,27 +267,27 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + " }\n" + "}"; - String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 iload_1 [b]\n" + - " 3 ifne 12\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 5]\n" + - " [pc: 6, line: 6]\n" + - " [pc: 12, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + + String expectedOutput = + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 iload_1 [b]\n" + + " 3 ifne 12\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 5]\n" + + " [pc: 6, line: 6]\n" + + " [pc: 12, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -303,18 +303,18 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + " }\n" + "}"; - String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 3] local: args index: 0 type: java.lang.String[]\n" + + String expectedOutput = + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 3] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 3] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); } @@ -335,32 +335,32 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 3\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 bipush 6\n" + - " 4 istore_2 [i]\n" + - " 5 iload_2 [i]\n" + - " 6 bipush 6\n" + - " 8 if_icmpeq 15\n" + - " 11 iload_1 [b]\n" + - " 12 ifne 22\n" + - " 15 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 18 iload_2 [i]\n" + - " 19 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 22 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 4]\n" + - " [pc: 5, line: 5]\n" + - " [pc: 11, line: 6]\n" + - " [pc: 15, line: 7]\n" + - " [pc: 22, line: 9]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 23] local: args index: 0 type: java.lang.String[]\n" + - " [pc: 2, pc: 23] local: b index: 1 type: boolean\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 3\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 bipush 6\n" + + " 4 istore_2 [i]\n" + + " 5 iload_2 [i]\n" + + " 6 bipush 6\n" + + " 8 if_icmpeq 15\n" + + " 11 iload_1 [b]\n" + + " 12 ifne 22\n" + + " 15 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 18 iload_2 [i]\n" + + " 19 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 22 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 4]\n" + + " [pc: 5, line: 5]\n" + + " [pc: 11, line: 6]\n" + + " [pc: 15, line: 7]\n" + + " [pc: 22, line: 9]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 23] local: args index: 0 type: java.lang.String[]\n" + + " [pc: 2, pc: 23] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 23] local: i index: 2 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -380,25 +380,25 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpeq 9\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpeq 9\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -418,25 +418,25 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpne 16\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpne 16\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -456,20 +456,20 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 5 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 8 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 6]\n" + - " [pc: 8, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 9] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 5 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 8 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 6]\n" + + " [pc: 8, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 9] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 9] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); } @@ -489,23 +489,23 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 iload_1 [b]\n" + - " 3 ifne 12\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 5]\n" + - " [pc: 6, line: 6]\n" + - " [pc: 12, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 iload_1 [b]\n" + + " 3 ifne 12\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 5]\n" + + " [pc: 6, line: 6]\n" + + " [pc: 12, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); } @@ -526,39 +526,39 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 3\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 bipush 6\n" + - " 4 istore_2 [i]\n" + - " 5 iload_2 [i]\n" + - " 6 bipush 6\n" + - " 8 if_icmpne 15\n" + - " 11 iconst_1\n" + - " 12 goto 16\n" + - " 15 iconst_0\n" + - " 16 iload_1 [b]\n" + - " 17 ifeq 24\n" + - " 20 iconst_0\n" + - " 21 goto 25\n" + - " 24 iconst_1\n" + - " 25 if_icmpne 35\n" + - " 28 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 31 iload_2 [i]\n" + - " 32 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 35 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 4]\n" + - " [pc: 5, line: 5]\n" + - " [pc: 16, line: 6]\n" + - " [pc: 28, line: 7]\n" + - " [pc: 35, line: 9]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 36] local: args index: 0 type: java.lang.String[]\n" + - " [pc: 2, pc: 36] local: b index: 1 type: boolean\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 3\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 bipush 6\n" + + " 4 istore_2 [i]\n" + + " 5 iload_2 [i]\n" + + " 6 bipush 6\n" + + " 8 if_icmpne 15\n" + + " 11 iconst_1\n" + + " 12 goto 16\n" + + " 15 iconst_0\n" + + " 16 iload_1 [b]\n" + + " 17 ifeq 24\n" + + " 20 iconst_0\n" + + " 21 goto 25\n" + + " 24 iconst_1\n" + + " 25 if_icmpne 35\n" + + " 28 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 31 iload_2 [i]\n" + + " 32 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 35 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 4]\n" + + " [pc: 5, line: 5]\n" + + " [pc: 16, line: 6]\n" + + " [pc: 28, line: 7]\n" + + " [pc: 35, line: 9]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 36] local: args index: 0 type: java.lang.String[]\n" + + " [pc: 2, pc: 36] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 36] local: i index: 2 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -578,25 +578,25 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpne 16\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpne 16\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -616,25 +616,25 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpeq 16\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpeq 16\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -654,23 +654,23 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 iload_1 [b]\n" + - " 3 ifne 12\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 5]\n" + - " [pc: 6, line: 6]\n" + - " [pc: 12, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 iload_1 [b]\n" + + " 3 ifne 12\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 5]\n" + + " [pc: 6, line: 6]\n" + + " [pc: 12, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); } @@ -690,23 +690,23 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 iload_1 [b]\n" + - " 3 ifeq 12\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 5]\n" + - " [pc: 6, line: 6]\n" + - " [pc: 12, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 iload_1 [b]\n" + + " 3 ifeq 12\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 5]\n" + + " [pc: 6, line: 6]\n" + + " [pc: 12, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); } @@ -728,35 +728,35 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 3\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 bipush 6\n" + - " 4 istore_2 [i]\n" + - " 5 iload_2 [i]\n" + - " 6 iconst_5\n" + - " 7 if_icmpne 17\n" + - " 10 iload_1 [b]\n" + - " 11 ifeq 28\n" + - " 14 goto 21\n" + - " 17 iload_1 [b]\n" + - " 18 ifne 28\n" + - " 21 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 24 iload_2 [i]\n" + - " 25 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 28 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 4]\n" + - " [pc: 5, line: 5]\n" + - " [pc: 10, line: 6]\n" + - " [pc: 21, line: 7]\n" + - " [pc: 28, line: 9]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 29] local: args index: 0 type: java.lang.String[]\n" + - " [pc: 2, pc: 29] local: b index: 1 type: boolean\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 3\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 bipush 6\n" + + " 4 istore_2 [i]\n" + + " 5 iload_2 [i]\n" + + " 6 iconst_5\n" + + " 7 if_icmpne 17\n" + + " 10 iload_1 [b]\n" + + " 11 ifeq 28\n" + + " 14 goto 21\n" + + " 17 iload_1 [b]\n" + + " 18 ifne 28\n" + + " 21 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 24 iload_2 [i]\n" + + " 25 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 28 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 4]\n" + + " [pc: 5, line: 5]\n" + + " [pc: 10, line: 6]\n" + + " [pc: 21, line: 7]\n" + + " [pc: 28, line: 9]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 29] local: args index: 0 type: java.lang.String[]\n" + + " [pc: 2, pc: 29] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 29] local: i index: 2 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -776,26 +776,26 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 iconst_5\n" + - " 5 if_icmplt 15\n" + - " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 11 iload_1 [i]\n" + - " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 15 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 4, line: 5]\n" + - " [pc: 8, line: 6]\n" + - " [pc: 15, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 iconst_5\n" + + " 5 if_icmplt 15\n" + + " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 11 iload_1 [i]\n" + + " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 15 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 4, line: 5]\n" + + " [pc: 8, line: 6]\n" + + " [pc: 15, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 16] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -815,24 +815,24 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 iflt 14\n" + - " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 10 iload_1 [i]\n" + - " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 14 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 7, line: 6]\n" + - " [pc: 14, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 iflt 14\n" + + " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 10 iload_1 [i]\n" + + " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 14 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 7, line: 6]\n" + + " [pc: 14, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 15] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -852,28 +852,28 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 ifgt 14\n" + - " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 10 iload_1 [i]\n" + - " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 14 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 5]\n" + - " [pc: 7, line: 6]\n" + - " [pc: 14, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 ifgt 14\n" + + " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 10 iload_1 [i]\n" + + " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 14 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 5]\n" + + " [pc: 7, line: 6]\n" + + " [pc: 14, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 15] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } - + /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 */ @@ -889,28 +889,28 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 ifle 14\n" + - " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 10 iload_1 [i]\n" + - " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 14 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 7, line: 6]\n" + - " [pc: 14, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 ifle 14\n" + + " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 10 iload_1 [i]\n" + + " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 14 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 7, line: 6]\n" + + " [pc: 14, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 15] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } - + } + /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 */ @@ -926,27 +926,27 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 ifge 14\n" + - " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 10 iload_1 [i]\n" + - " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 14 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 5]\n" + - " [pc: 7, line: 6]\n" + - " [pc: 14, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 ifge 14\n" + + " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 10 iload_1 [i]\n" + + " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 14 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 5]\n" + + " [pc: 7, line: 6]\n" + + " [pc: 14, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 15] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -963,29 +963,29 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 iconst_5\n" + - " 5 if_icmple 15\n" + - " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 11 iload_1 [i]\n" + - " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 15 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 4, line: 5]\n" + - " [pc: 8, line: 6]\n" + - " [pc: 15, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 iconst_5\n" + + " 5 if_icmple 15\n" + + " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 11 iload_1 [i]\n" + + " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 15 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 4, line: 5]\n" + + " [pc: 8, line: 6]\n" + + " [pc: 15, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 16] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** @@ -1003,27 +1003,27 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 ifge 14\n" + - " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 10 iload_1 [i]\n" + - " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 14 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 7, line: 6]\n" + - " [pc: 14, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 ifge 14\n" + + " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 10 iload_1 [i]\n" + + " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 14 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 7, line: 6]\n" + + " [pc: 14, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 15] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** @@ -1041,24 +1041,24 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 ifle 14\n" + - " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 10 iload_1 [i]\n" + - " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 14 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 5]\n" + - " [pc: 7, line: 6]\n" + - " [pc: 14, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 ifle 14\n" + + " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 10 iload_1 [i]\n" + + " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 14 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 5]\n" + + " [pc: 7, line: 6]\n" + + " [pc: 14, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 15] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -1078,26 +1078,26 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 iconst_5\n" + - " 5 if_icmpge 15\n" + - " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 11 iload_1 [i]\n" + - " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 15 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 4, line: 5]\n" + - " [pc: 8, line: 6]\n" + - " [pc: 15, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 iconst_5\n" + + " 5 if_icmpge 15\n" + + " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 11 iload_1 [i]\n" + + " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 15 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 4, line: 5]\n" + + " [pc: 8, line: 6]\n" + + " [pc: 15, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 16] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -1117,24 +1117,24 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 ifgt 14\n" + - " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 10 iload_1 [i]\n" + - " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 14 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 7, line: 6]\n" + - " [pc: 14, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 ifgt 14\n" + + " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 10 iload_1 [i]\n" + + " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 14 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 7, line: 6]\n" + + " [pc: 14, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 15] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -1155,27 +1155,27 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 iflt 14\n" + - " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 10 iload_1 [i]\n" + - " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 14 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 5]\n" + - " [pc: 7, line: 6]\n" + - " [pc: 14, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 iflt 14\n" + + " 7 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 10 iload_1 [i]\n" + + " 11 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 14 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 5]\n" + + " [pc: 7, line: 6]\n" + + " [pc: 14, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 15] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1192,30 +1192,30 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 iconst_5\n" + - " 5 if_icmpgt 15\n" + - " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 11 iload_1 [i]\n" + - " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 15 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 4, line: 5]\n" + - " [pc: 8, line: 6]\n" + - " [pc: 15, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 iconst_5\n" + + " 5 if_icmpgt 15\n" + + " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 11 iload_1 [i]\n" + + " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 15 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 4, line: 5]\n" + + " [pc: 8, line: 6]\n" + + " [pc: 15, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 16] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } - + /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 */ @@ -1231,29 +1231,29 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 iconst_5\n" + - " 5 if_icmpgt 15\n" + - " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 11 iload_1 [i]\n" + - " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 15 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 4, line: 5]\n" + - " [pc: 8, line: 6]\n" + - " [pc: 15, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 iconst_5\n" + + " 5 if_icmpgt 15\n" + + " 8 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 11 iload_1 [i]\n" + + " 12 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 15 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 4, line: 5]\n" + + " [pc: 8, line: 6]\n" + + " [pc: 15, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 16] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 16] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1271,40 +1271,40 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 3\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 bipush 6\n" + - " 4 istore_2 [i]\n" + - " 5 iload_2 [i]\n" + - " 6 bipush 6\n" + - " 8 if_icmpne 15\n" + - " 11 iconst_1\n" + - " 12 goto 16\n" + - " 15 iconst_0\n" + - " 16 iload_1 [b]\n" + - " 17 ifeq 24\n" + - " 20 iconst_0\n" + - " 21 goto 25\n" + - " 24 iconst_1\n" + - " 25 iand\n" + - " 26 ifeq 36\n" + - " 29 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 32 iload_2 [i]\n" + - " 33 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 36 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 4]\n" + - " [pc: 5, line: 5]\n" + - " [pc: 16, line: 6]\n" + - " [pc: 29, line: 7]\n" + - " [pc: 36, line: 9]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 37] local: args index: 0 type: java.lang.String[]\n" + - " [pc: 2, pc: 37] local: b index: 1 type: boolean\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 3\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 bipush 6\n" + + " 4 istore_2 [i]\n" + + " 5 iload_2 [i]\n" + + " 6 bipush 6\n" + + " 8 if_icmpne 15\n" + + " 11 iconst_1\n" + + " 12 goto 16\n" + + " 15 iconst_0\n" + + " 16 iload_1 [b]\n" + + " 17 ifeq 24\n" + + " 20 iconst_0\n" + + " 21 goto 25\n" + + " 24 iconst_1\n" + + " 25 iand\n" + + " 26 ifeq 36\n" + + " 29 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 32 iload_2 [i]\n" + + " 33 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 36 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 4]\n" + + " [pc: 5, line: 5]\n" + + " [pc: 16, line: 6]\n" + + " [pc: 29, line: 7]\n" + + " [pc: 36, line: 9]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 37] local: args index: 0 type: java.lang.String[]\n" + + " [pc: 2, pc: 37] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 37] local: i index: 2 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -1324,28 +1324,28 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpne 16\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpne 16\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1362,17 +1362,17 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 4] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 4] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 4] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -1392,26 +1392,26 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 iload_1 [b]\n" + - " 3 ifne 12\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 5]\n" + - " [pc: 6, line: 6]\n" + - " [pc: 12, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 iload_1 [b]\n" + + " 3 ifne 12\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 5]\n" + + " [pc: 6, line: 6]\n" + + " [pc: 12, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1428,17 +1428,17 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 3] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 3] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 3] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); } @@ -1459,40 +1459,40 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 3\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 bipush 6\n" + - " 4 istore_2 [i]\n" + - " 5 iload_2 [i]\n" + - " 6 bipush 6\n" + - " 8 if_icmpne 15\n" + - " 11 iconst_1\n" + - " 12 goto 16\n" + - " 15 iconst_0\n" + - " 16 iload_1 [b]\n" + - " 17 ifeq 24\n" + - " 20 iconst_0\n" + - " 21 goto 25\n" + - " 24 iconst_1\n" + - " 25 ior\n" + - " 26 ifeq 36\n" + - " 29 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 32 iload_2 [i]\n" + - " 33 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 36 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 4]\n" + - " [pc: 5, line: 5]\n" + - " [pc: 16, line: 6]\n" + - " [pc: 29, line: 7]\n" + - " [pc: 36, line: 9]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 37] local: args index: 0 type: java.lang.String[]\n" + - " [pc: 2, pc: 37] local: b index: 1 type: boolean\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 3\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 bipush 6\n" + + " 4 istore_2 [i]\n" + + " 5 iload_2 [i]\n" + + " 6 bipush 6\n" + + " 8 if_icmpne 15\n" + + " 11 iconst_1\n" + + " 12 goto 16\n" + + " 15 iconst_0\n" + + " 16 iload_1 [b]\n" + + " 17 ifeq 24\n" + + " 20 iconst_0\n" + + " 21 goto 25\n" + + " 24 iconst_1\n" + + " 25 ior\n" + + " 26 ifeq 36\n" + + " 29 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 32 iload_2 [i]\n" + + " 33 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 36 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 4]\n" + + " [pc: 5, line: 5]\n" + + " [pc: 16, line: 6]\n" + + " [pc: 29, line: 7]\n" + + " [pc: 36, line: 9]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 37] local: args index: 0 type: java.lang.String[]\n" + + " [pc: 2, pc: 37] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 37] local: i index: 2 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -1512,24 +1512,24 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 6 iload_1 [i]\n" + - " 7 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 10 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 6]\n" + - " [pc: 10, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 11] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 6 iload_1 [i]\n" + + " 7 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 10 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 6]\n" + + " [pc: 10, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 11] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 11] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1546,28 +1546,28 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpne 16\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpne 16\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1584,23 +1584,23 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 5 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 8 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 6]\n" + - " [pc: 8, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 9] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 5 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 8 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 6]\n" + + " [pc: 8, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 9] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 9] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1617,26 +1617,26 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 iload_1 [b]\n" + - " 3 ifne 12\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 5]\n" + - " [pc: 6, line: 6]\n" + - " [pc: 12, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 iload_1 [b]\n" + + " 3 ifne 12\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 5]\n" + + " [pc: 6, line: 6]\n" + + " [pc: 12, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1654,40 +1654,40 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 3\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 bipush 6\n" + - " 4 istore_2 [i]\n" + - " 5 iload_2 [i]\n" + - " 6 bipush 6\n" + - " 8 if_icmpne 15\n" + - " 11 iconst_1\n" + - " 12 goto 16\n" + - " 15 iconst_0\n" + - " 16 iload_1 [b]\n" + - " 17 ifeq 24\n" + - " 20 iconst_0\n" + - " 21 goto 25\n" + - " 24 iconst_1\n" + - " 25 ixor\n" + - " 26 ifeq 36\n" + - " 29 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 32 iload_2 [i]\n" + - " 33 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 36 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 4]\n" + - " [pc: 5, line: 5]\n" + - " [pc: 16, line: 6]\n" + - " [pc: 29, line: 7]\n" + - " [pc: 36, line: 9]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 37] local: args index: 0 type: java.lang.String[]\n" + - " [pc: 2, pc: 37] local: b index: 1 type: boolean\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 3\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 bipush 6\n" + + " 4 istore_2 [i]\n" + + " 5 iload_2 [i]\n" + + " 6 bipush 6\n" + + " 8 if_icmpne 15\n" + + " 11 iconst_1\n" + + " 12 goto 16\n" + + " 15 iconst_0\n" + + " 16 iload_1 [b]\n" + + " 17 ifeq 24\n" + + " 20 iconst_0\n" + + " 21 goto 25\n" + + " 24 iconst_1\n" + + " 25 ixor\n" + + " 26 ifeq 36\n" + + " 29 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 32 iload_2 [i]\n" + + " 33 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 36 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 4]\n" + + " [pc: 5, line: 5]\n" + + " [pc: 16, line: 6]\n" + + " [pc: 29, line: 7]\n" + + " [pc: 36, line: 9]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 37] local: args index: 0 type: java.lang.String[]\n" + + " [pc: 2, pc: 37] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 37] local: i index: 2 type: int\n"; checkClassFile("A", source, expectedOutput); } @@ -1707,28 +1707,28 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpeq 16\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpeq 16\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1745,28 +1745,28 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 2, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 bipush 6\n" + - " 2 istore_1 [i]\n" + - " 3 iload_1 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpne 16\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 12 iload_1 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 3, line: 4]\n" + - " [pc: 9, line: 6]\n" + - " [pc: 16, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 2, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 bipush 6\n" + + " 2 istore_1 [i]\n" + + " 3 iload_1 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpne 16\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 12 iload_1 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [22]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 3, line: 4]\n" + + " [pc: 9, line: 6]\n" + + " [pc: 16, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); - } + } /** * http://bugs.eclipse.org/bugs/show_bug.cgi?id=26753 @@ -1783,23 +1783,23 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 iload_1 [b]\n" + - " 3 ifeq 12\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 5]\n" + - " [pc: 6, line: 6]\n" + - " [pc: 12, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 iload_1 [b]\n" + + " 3 ifeq 12\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 5]\n" + + " [pc: 6, line: 6]\n" + + " [pc: 12, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); } @@ -1819,23 +1819,23 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 ([Ljava/lang/String;)V\n" + - " // Stack: 1, Locals: 2\n" + - " public static void main(java.lang.String[] args);\n" + - " 0 iconst_0\n" + - " 1 istore_1 [b]\n" + - " 2 iload_1 [b]\n" + - " 3 ifne 12\n" + - " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + - " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 3]\n" + - " [pc: 2, line: 5]\n" + - " [pc: 6, line: 6]\n" + - " [pc: 12, line: 8]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + + " // Method descriptor #15 ([Ljava/lang/String;)V\n" + + " // Stack: 1, Locals: 2\n" + + " public static void main(java.lang.String[] args);\n" + + " 0 iconst_0\n" + + " 1 istore_1 [b]\n" + + " 2 iload_1 [b]\n" + + " 3 ifne 12\n" + + " 6 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + + " 9 invokevirtual java.io.PrintStream.println() : void [22]\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 3]\n" + + " [pc: 2, line: 5]\n" + + " [pc: 6, line: 6]\n" + + " [pc: 12, line: 8]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); } @@ -1860,746 +1860,746 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " }\n" + "}"; String expectedOutput = - " // Method descriptor #15 (Z)I\n" + - " // Stack: 1, Locals: 4\n" + - " static int foo(boolean bool);\n" + - " 0 iload_0 [bool]\n" + - " 1 ifeq 9\n" + - " 4 jsr 20\n" + - " 7 iconst_1\n" + - " 8 ireturn\n" + - " 9 iconst_2\n" + - " 10 istore_1 [j]\n" + - " 11 goto 25\n" + - " 14 astore_3\n" + - " 15 jsr 20\n" + - " 18 aload_3\n" + - " 19 athrow\n" + - " 20 astore_2\n" + - " 21 iconst_3\n" + - " 22 istore_1 [j]\n" + - " 23 ret 2\n" + - " 25 jsr 20\n" + - " 28 iload_1 [j]\n" + - " 29 ireturn\n" + - " Exception Table:\n" + - " [pc: 0, pc: 7] -> 14 when : any\n" + - " [pc: 9, pc: 14] -> 14 when : any\n" + - " [pc: 25, pc: 28] -> 14 when : any\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 9, line: 7]\n" + - " [pc: 14, line: 8]\n" + - " [pc: 18, line: 10]\n" + - " [pc: 20, line: 8]\n" + - " [pc: 21, line: 9]\n" + - " [pc: 23, line: 10]\n" + - " [pc: 28, line: 11]\n" + - " Local variable table:\n" + - " [pc: 0, pc: 30] local: bool index: 0 type: boolean\n" + - " [pc: 11, pc: 14] local: j index: 1 type: int\n" + + " // Method descriptor #15 (Z)I\n" + + " // Stack: 1, Locals: 4\n" + + " static int foo(boolean bool);\n" + + " 0 iload_0 [bool]\n" + + " 1 ifeq 9\n" + + " 4 jsr 20\n" + + " 7 iconst_1\n" + + " 8 ireturn\n" + + " 9 iconst_2\n" + + " 10 istore_1 [j]\n" + + " 11 goto 25\n" + + " 14 astore_3\n" + + " 15 jsr 20\n" + + " 18 aload_3\n" + + " 19 athrow\n" + + " 20 astore_2\n" + + " 21 iconst_3\n" + + " 22 istore_1 [j]\n" + + " 23 ret 2\n" + + " 25 jsr 20\n" + + " 28 iload_1 [j]\n" + + " 29 ireturn\n" + + " Exception Table:\n" + + " [pc: 0, pc: 7] -> 14 when : any\n" + + " [pc: 9, pc: 14] -> 14 when : any\n" + + " [pc: 25, pc: 28] -> 14 when : any\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 9, line: 7]\n" + + " [pc: 14, line: 8]\n" + + " [pc: 18, line: 10]\n" + + " [pc: 20, line: 8]\n" + + " [pc: 21, line: 9]\n" + + " [pc: 23, line: 10]\n" + + " [pc: 28, line: 11]\n" + + " Local variable table:\n" + + " [pc: 0, pc: 30] local: bool index: 0 type: boolean\n" + + " [pc: 11, pc: 14] local: j index: 1 type: int\n" + " [pc: 23, pc: 30] local: j index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } - + public void test049() throws Exception { String source = - "public class X {\n" + - " public static void main(String[] args) {\n" + - " foo();\n" + - " }\n" + - " static void foo() {\n" + - " int i = 5;\n" + - " if ((i == 6) && false) { \n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 1, Locals: 1\n" + - " static void foo();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 2, line: 10]\n" + - " Local variable table:\n" + + "public class X {\n" + + " public static void main(String[] args) {\n" + + " foo();\n" + + " }\n" + + " static void foo() {\n" + + " int i = 5;\n" + + " if ((i == 6) && false) { \n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 1, Locals: 1\n" + + " static void foo();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 2, line: 10]\n" + + " Local variable table:\n" + " [pc: 2, pc: 3] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } - + public void test050() throws Exception { String source = - "public class X {\n" + - " public static void main(String[] args) {\n" + - " foo();\n" + - " }\n" + - " static void foo() {\n" + - " int i = 5;\n" + - " if ((i == 6) && false) {}\n" + - " else { \n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void foo();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 iload_0 [i]\n" + - " 3 bipush 6\n" + - " 5 if_icmpne 8\n" + - " 8 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + - " 11 iload_0 [i]\n" + - " 12 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + - " 15 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 2, line: 7]\n" + - " [pc: 8, line: 9]\n" + - " [pc: 15, line: 11]\n" + - " Local variable table:\n" + + "public class X {\n" + + " public static void main(String[] args) {\n" + + " foo();\n" + + " }\n" + + " static void foo() {\n" + + " int i = 5;\n" + + " if ((i == 6) && false) {}\n" + + " else { \n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void foo();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 iload_0 [i]\n" + + " 3 bipush 6\n" + + " 5 if_icmpne 8\n" + + " 8 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + + " 11 iload_0 [i]\n" + + " 12 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + + " 15 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 2, line: 7]\n" + + " [pc: 8, line: 9]\n" + + " [pc: 15, line: 11]\n" + + " Local variable table:\n" + " [pc: 2, pc: 16] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test051() throws Exception { String source = - "public class X {\n" + - " public static void main(String[] args) {\n" + - " bar();\n" + - " }\n" + - " static void bar() {\n" + - " int i = 6;\n" + - " if ((i == 6) || true) {\n" + - " } else {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 1, Locals: 1\n" + - " static void bar();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 3, line: 11]\n" + - " Local variable table:\n" + + "public class X {\n" + + " public static void main(String[] args) {\n" + + " bar();\n" + + " }\n" + + " static void bar() {\n" + + " int i = 6;\n" + + " if ((i == 6) || true) {\n" + + " } else {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 1, Locals: 1\n" + + " static void bar();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 3, line: 11]\n" + + " Local variable table:\n" + " [pc: 3, pc: 4] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } - + public void test052() throws Exception { String source = - "public class X {\n" + - " public static void main(String[] args) {\n" + - " bar();\n" + - " }\n" + - " static void bar() {\n" + - " int i = 6;\n" + - " if ((i == 6) || true) {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void bar();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 iload_0 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpeq 9\n" + - " 9 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + - " 12 iload_0 [i]\n" + - " 13 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + - " 16 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 3, line: 7]\n" + - " [pc: 9, line: 8]\n" + - " [pc: 16, line: 10]\n" + - " Local variable table:\n" + + "public class X {\n" + + " public static void main(String[] args) {\n" + + " bar();\n" + + " }\n" + + " static void bar() {\n" + + " int i = 6;\n" + + " if ((i == 6) || true) {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void bar();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 iload_0 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpeq 9\n" + + " 9 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + + " 12 iload_0 [i]\n" + + " 13 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + + " 16 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 3, line: 7]\n" + + " [pc: 9, line: 8]\n" + + " [pc: 16, line: 10]\n" + + " Local variable table:\n" + " [pc: 3, pc: 17] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test053() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " foo2();\n" + - " }\n" + - " static void foo2() {\n" + - " int i = 5;\n" + - " if ((i == 6) && (boom() && false)) {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void foo2();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 iload_0 [i]\n" + - " 3 bipush 6\n" + - " 5 if_icmpne 12\n" + - " 8 invokestatic X.boom() : boolean [26]\n" + - " 11 pop\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 2, line: 10]\n" + - " [pc: 12, line: 13]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " foo2();\n" + + " }\n" + + " static void foo2() {\n" + + " int i = 5;\n" + + " if ((i == 6) && (boom() && false)) {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void foo2();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 iload_0 [i]\n" + + " 3 bipush 6\n" + + " 5 if_icmpne 12\n" + + " 8 invokestatic X.boom() : boolean [26]\n" + + " 11 pop\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 2, line: 10]\n" + + " [pc: 12, line: 13]\n" + + " Local variable table:\n" + " [pc: 2, pc: 13] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test054() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " foo2();\n" + - " }\n" + - " static void foo2() {\n" + - " int i = 5;\n" + - " if ((i == 6) && (boom() && false)) {\n" + - " } else {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void foo2();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 iload_0 [i]\n" + - " 3 bipush 6\n" + - " 5 if_icmpne 14\n" + - " 8 invokestatic X.boom() : boolean [26]\n" + - " 11 ifeq 14\n" + - " 14 getstatic java.lang.System.out : java.io.PrintStream [28]\n" + - " 17 iload_0 [i]\n" + - " 18 invokevirtual java.io.PrintStream.println(int) : void [34]\n" + - " 21 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 2, line: 10]\n" + - " [pc: 14, line: 12]\n" + - " [pc: 21, line: 14]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " foo2();\n" + + " }\n" + + " static void foo2() {\n" + + " int i = 5;\n" + + " if ((i == 6) && (boom() && false)) {\n" + + " } else {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void foo2();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 iload_0 [i]\n" + + " 3 bipush 6\n" + + " 5 if_icmpne 14\n" + + " 8 invokestatic X.boom() : boolean [26]\n" + + " 11 ifeq 14\n" + + " 14 getstatic java.lang.System.out : java.io.PrintStream [28]\n" + + " 17 iload_0 [i]\n" + + " 18 invokevirtual java.io.PrintStream.println(int) : void [34]\n" + + " 21 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 2, line: 10]\n" + + " [pc: 14, line: 12]\n" + + " [pc: 21, line: 14]\n" + + " Local variable table:\n" + " [pc: 2, pc: 22] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } - + public void test055() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " bar2();\n" + - " }\n" + - " static void bar2() {\n" + - " int i = 6;\n" + - " if ((i == 6) || (boom() || true)) {\n" + - " } else {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void bar2();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 iload_0 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpeq 13\n" + - " 9 invokestatic X.boom() : boolean [26]\n" + - " 12 pop\n" + - " 13 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 3, line: 10]\n" + - " [pc: 13, line: 14]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " bar2();\n" + + " }\n" + + " static void bar2() {\n" + + " int i = 6;\n" + + " if ((i == 6) || (boom() || true)) {\n" + + " } else {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void bar2();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 iload_0 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpeq 13\n" + + " 9 invokestatic X.boom() : boolean [26]\n" + + " 12 pop\n" + + " 13 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 3, line: 10]\n" + + " [pc: 13, line: 14]\n" + + " Local variable table:\n" + " [pc: 3, pc: 14] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test056() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " bar2();\n" + - " }\n" + - " static void bar2() {\n" + - " int i = 6;\n" + - " if ((i == 6) || (boom() || true)) {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void bar2();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 iload_0 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpeq 15\n" + - " 9 invokestatic X.boom() : boolean [26]\n" + - " 12 ifne 15\n" + - " 15 getstatic java.lang.System.out : java.io.PrintStream [28]\n" + - " 18 iload_0 [i]\n" + - " 19 invokevirtual java.io.PrintStream.println(int) : void [34]\n" + - " 22 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 3, line: 10]\n" + - " [pc: 15, line: 11]\n" + - " [pc: 22, line: 13]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " bar2();\n" + + " }\n" + + " static void bar2() {\n" + + " int i = 6;\n" + + " if ((i == 6) || (boom() || true)) {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void bar2();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 iload_0 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpeq 15\n" + + " 9 invokestatic X.boom() : boolean [26]\n" + + " 12 ifne 15\n" + + " 15 getstatic java.lang.System.out : java.io.PrintStream [28]\n" + + " 18 iload_0 [i]\n" + + " 19 invokevirtual java.io.PrintStream.println(int) : void [34]\n" + + " 22 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 3, line: 10]\n" + + " [pc: 15, line: 11]\n" + + " [pc: 22, line: 13]\n" + + " Local variable table:\n" + " [pc: 3, pc: 23] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test057() throws Exception { String source = - "public class X {\n" + - " public static void main(String[] args) {\n" + - " foo3();\n" + - " }\n" + - " static void foo3() {\n" + - " int i = 5;\n" + - " if (false && (i == 6)) {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 1, Locals: 1\n" + - " static void foo3();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 2, line: 10]\n" + - " Local variable table:\n" + + "public class X {\n" + + " public static void main(String[] args) {\n" + + " foo3();\n" + + " }\n" + + " static void foo3() {\n" + + " int i = 5;\n" + + " if (false && (i == 6)) {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 1, Locals: 1\n" + + " static void foo3();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 2, line: 10]\n" + + " Local variable table:\n" + " [pc: 2, pc: 3] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } - + public void test058() throws Exception { String source = - "public class X {\n" + - " public static void main(String[] args) {\n" + - " foo3();\n" + - " }\n" + - " static void foo3() {\n" + - " int i = 5;\n" + - " if (false && (i == 6)) {\n" + - " } else {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void foo3();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + - " 5 iload_0 [i]\n" + - " 6 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + - " 9 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 2, line: 9]\n" + - " [pc: 9, line: 11]\n" + - " Local variable table:\n" + + "public class X {\n" + + " public static void main(String[] args) {\n" + + " foo3();\n" + + " }\n" + + " static void foo3() {\n" + + " int i = 5;\n" + + " if (false && (i == 6)) {\n" + + " } else {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void foo3();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + + " 5 iload_0 [i]\n" + + " 6 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + + " 9 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 2, line: 9]\n" + + " [pc: 9, line: 11]\n" + + " Local variable table:\n" + " [pc: 2, pc: 10] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test059() throws Exception { String source = - "public class X {\n" + - " public static void main(String[] args) {\n" + - " bar3();\n" + - " }\n" + - " static void bar3() {\n" + - " int i = 6;\n" + - " if (true || (i == 6)) {\n" + - " } else {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 1, Locals: 1\n" + - " static void bar3();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 3, line: 11]\n" + - " Local variable table:\n" + + "public class X {\n" + + " public static void main(String[] args) {\n" + + " bar3();\n" + + " }\n" + + " static void bar3() {\n" + + " int i = 6;\n" + + " if (true || (i == 6)) {\n" + + " } else {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 1, Locals: 1\n" + + " static void bar3();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 3, line: 11]\n" + + " Local variable table:\n" + " [pc: 3, pc: 4] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test060() throws Exception { String source = - "public class X {\n" + - " public static void main(String[] args) {\n" + - " bar3();\n" + - " }\n" + - " static void bar3() {\n" + - " int i = 6;\n" + - " if (true || (i == 6)) {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void bar3();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + - " 6 iload_0 [i]\n" + - " 7 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + - " 10 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 6]\n" + - " [pc: 3, line: 8]\n" + - " [pc: 10, line: 10]\n" + - " Local variable table:\n" + + "public class X {\n" + + " public static void main(String[] args) {\n" + + " bar3();\n" + + " }\n" + + " static void bar3() {\n" + + " int i = 6;\n" + + " if (true || (i == 6)) {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void bar3();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + + " 6 iload_0 [i]\n" + + " 7 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + + " 10 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 6]\n" + + " [pc: 3, line: 8]\n" + + " [pc: 10, line: 10]\n" + + " Local variable table:\n" + " [pc: 3, pc: 11] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test061() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " foo4();\n" + - " }\n" + - " static void foo4() {\n" + - " int i = 5;\n" + - " if ((false && boom()) && (i == 6)) { \n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 1, Locals: 1\n" + - " static void foo4();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 2, line: 13]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " foo4();\n" + + " }\n" + + " static void foo4() {\n" + + " int i = 5;\n" + + " if ((false && boom()) && (i == 6)) { \n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 1, Locals: 1\n" + + " static void foo4();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 2, line: 13]\n" + + " Local variable table:\n" + " [pc: 2, pc: 3] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } - + public void test062() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " foo4();\n" + - " }\n" + - " static void foo4() {\n" + - " int i = 5;\n" + - " if ((false && boom()) && (i == 6)) {\n" + - " } else { \n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void foo4();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 getstatic java.lang.System.out : java.io.PrintStream [26]\n" + - " 5 iload_0 [i]\n" + - " 6 invokevirtual java.io.PrintStream.println(int) : void [32]\n" + - " 9 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 2, line: 12]\n" + - " [pc: 9, line: 14]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " foo4();\n" + + " }\n" + + " static void foo4() {\n" + + " int i = 5;\n" + + " if ((false && boom()) && (i == 6)) {\n" + + " } else { \n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void foo4();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 getstatic java.lang.System.out : java.io.PrintStream [26]\n" + + " 5 iload_0 [i]\n" + + " 6 invokevirtual java.io.PrintStream.println(int) : void [32]\n" + + " 9 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 2, line: 12]\n" + + " [pc: 9, line: 14]\n" + + " Local variable table:\n" + " [pc: 2, pc: 10] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test063() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " bar4();\n" + - " }\n" + - " static void bar4() {\n" + - " int i = 6;\n" + - " if ((true || boom()) || (i == 6)) {\n" + - " } else {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 1, Locals: 1\n" + - " static void bar4();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 3, line: 14]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " bar4();\n" + + " }\n" + + " static void bar4() {\n" + + " int i = 6;\n" + + " if ((true || boom()) || (i == 6)) {\n" + + " } else {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 1, Locals: 1\n" + + " static void bar4();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 3, line: 14]\n" + + " Local variable table:\n" + " [pc: 3, pc: 4] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test064() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " bar4();\n" + - " }\n" + - " static void bar4() {\n" + - " int i = 6;\n" + - " if ((true || boom()) || (i == 6)) {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void bar4();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 getstatic java.lang.System.out : java.io.PrintStream [26]\n" + - " 6 iload_0 [i]\n" + - " 7 invokevirtual java.io.PrintStream.println(int) : void [32]\n" + - " 10 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 3, line: 11]\n" + - " [pc: 10, line: 13]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " bar4();\n" + + " }\n" + + " static void bar4() {\n" + + " int i = 6;\n" + + " if ((true || boom()) || (i == 6)) {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void bar4();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 getstatic java.lang.System.out : java.io.PrintStream [26]\n" + + " 6 iload_0 [i]\n" + + " 7 invokevirtual java.io.PrintStream.println(int) : void [32]\n" + + " 10 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 3, line: 11]\n" + + " [pc: 10, line: 13]\n" + + " Local variable table:\n" + " [pc: 3, pc: 11] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test065() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " foo5();\n" + - " }\n" + - " static void foo5() {\n" + - " int i = 5;\n" + - " if (((i == 6) && (boom() && false)) && false) {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void foo5();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 iload_0 [i]\n" + - " 3 bipush 6\n" + - " 5 if_icmpne 12\n" + - " 8 invokestatic X.boom() : boolean [26]\n" + - " 11 pop\n" + - " 12 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 2, line: 10]\n" + - " [pc: 12, line: 13]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " foo5();\n" + + " }\n" + + " static void foo5() {\n" + + " int i = 5;\n" + + " if (((i == 6) && (boom() && false)) && false) {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void foo5();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 iload_0 [i]\n" + + " 3 bipush 6\n" + + " 5 if_icmpne 12\n" + + " 8 invokestatic X.boom() : boolean [26]\n" + + " 11 pop\n" + + " 12 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 2, line: 10]\n" + + " [pc: 12, line: 13]\n" + + " Local variable table:\n" + " [pc: 2, pc: 13] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } - + public void test066() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " foo5();\n" + - " }\n" + - " static void foo5() {\n" + - " int i = 5;\n" + - " if (((i == 6) && (boom() && false)) && false) {\n" + - " } else {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void foo5();\n" + - " 0 iconst_5\n" + - " 1 istore_0 [i]\n" + - " 2 iload_0 [i]\n" + - " 3 bipush 6\n" + - " 5 if_icmpne 14\n" + - " 8 invokestatic X.boom() : boolean [26]\n" + - " 11 ifeq 14\n" + - " 14 getstatic java.lang.System.out : java.io.PrintStream [28]\n" + - " 17 iload_0 [i]\n" + - " 18 invokevirtual java.io.PrintStream.println(int) : void [34]\n" + - " 21 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 2, line: 10]\n" + - " [pc: 14, line: 12]\n" + - " [pc: 21, line: 14]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " foo5();\n" + + " }\n" + + " static void foo5() {\n" + + " int i = 5;\n" + + " if (((i == 6) && (boom() && false)) && false) {\n" + + " } else {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void foo5();\n" + + " 0 iconst_5\n" + + " 1 istore_0 [i]\n" + + " 2 iload_0 [i]\n" + + " 3 bipush 6\n" + + " 5 if_icmpne 14\n" + + " 8 invokestatic X.boom() : boolean [26]\n" + + " 11 ifeq 14\n" + + " 14 getstatic java.lang.System.out : java.io.PrintStream [28]\n" + + " 17 iload_0 [i]\n" + + " 18 invokevirtual java.io.PrintStream.println(int) : void [34]\n" + + " 21 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 2, line: 10]\n" + + " [pc: 14, line: 12]\n" + + " [pc: 21, line: 14]\n" + + " Local variable table:\n" + " [pc: 2, pc: 22] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test067() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " bar5();\n" + - " }\n" + - " static void bar5() {\n" + - " int i = 6;\n" + - " if (((i == 6) || (boom() || true)) && true) {\n" + - " } else {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void bar5();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 iload_0 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpeq 13\n" + - " 9 invokestatic X.boom() : boolean [26]\n" + - " 12 pop\n" + - " 13 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 3, line: 10]\n" + - " [pc: 13, line: 14]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " bar5();\n" + + " }\n" + + " static void bar5() {\n" + + " int i = 6;\n" + + " if (((i == 6) || (boom() || true)) && true) {\n" + + " } else {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void bar5();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 iload_0 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpeq 13\n" + + " 9 invokestatic X.boom() : boolean [26]\n" + + " 12 pop\n" + + " 13 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 3, line: 10]\n" + + " [pc: 13, line: 14]\n" + + " Local variable table:\n" + " [pc: 3, pc: 14] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } public void test068() throws Exception { String source = - "public class X {\n" + - " static boolean boom() { \n" + - " throw new NullPointerException();\n" + - " }\n" + - " public static void main(String[] args) {\n" + - " bar5();\n" + - " }\n" + - " static void bar5() {\n" + - " int i = 6;\n" + - " if (((i == 6) || (boom() || true)) && true) {\n" + - " System.out.println(i);\n" + - " }\n" + - " }\n" + - "}"; - String expectedOutput = - " // Method descriptor #6 ()V\n" + - " // Stack: 2, Locals: 1\n" + - " static void bar5();\n" + - " 0 bipush 6\n" + - " 2 istore_0 [i]\n" + - " 3 iload_0 [i]\n" + - " 4 bipush 6\n" + - " 6 if_icmpeq 15\n" + - " 9 invokestatic X.boom() : boolean [26]\n" + - " 12 ifne 15\n" + - " 15 getstatic java.lang.System.out : java.io.PrintStream [28]\n" + - " 18 iload_0 [i]\n" + - " 19 invokevirtual java.io.PrintStream.println(int) : void [34]\n" + - " 22 return\n" + - " Line numbers:\n" + - " [pc: 0, line: 9]\n" + - " [pc: 3, line: 10]\n" + - " [pc: 15, line: 11]\n" + - " [pc: 22, line: 13]\n" + - " Local variable table:\n" + + "public class X {\n" + + " static boolean boom() { \n" + + " throw new NullPointerException();\n" + + " }\n" + + " public static void main(String[] args) {\n" + + " bar5();\n" + + " }\n" + + " static void bar5() {\n" + + " int i = 6;\n" + + " if (((i == 6) || (boom() || true)) && true) {\n" + + " System.out.println(i);\n" + + " }\n" + + " }\n" + + "}"; + String expectedOutput = + " // Method descriptor #6 ()V\n" + + " // Stack: 2, Locals: 1\n" + + " static void bar5();\n" + + " 0 bipush 6\n" + + " 2 istore_0 [i]\n" + + " 3 iload_0 [i]\n" + + " 4 bipush 6\n" + + " 6 if_icmpeq 15\n" + + " 9 invokestatic X.boom() : boolean [26]\n" + + " 12 ifne 15\n" + + " 15 getstatic java.lang.System.out : java.io.PrintStream [28]\n" + + " 18 iload_0 [i]\n" + + " 19 invokevirtual java.io.PrintStream.println(int) : void [34]\n" + + " 22 return\n" + + " Line numbers:\n" + + " [pc: 0, line: 9]\n" + + " [pc: 3, line: 10]\n" + + " [pc: 15, line: 11]\n" + + " [pc: 22, line: 13]\n" + + " Local variable table:\n" + " [pc: 3, pc: 23] local: i index: 0 type: int\n"; checkClassFile("X", source, expectedOutput); } @@ -2609,18 +2609,18 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { */ public void test069() throws Exception { String source = - "public interface I {\n" + + "public interface I {\n" + "}"; String expectedOutput = - "// Compiled from I.java (version 1.2 : 46.0, no super bit)\n" + - "public abstract interface I {\n" + - " Constant pool:\n" + - " constant #1 class: #2 I\n" + - " constant #2 utf8: \"I\"\n" + - " constant #3 class: #4 java/lang/Object\n" + - " constant #4 utf8: \"java/lang/Object\"\n" + - " constant #5 utf8: \"SourceFile\"\n" + - " constant #6 utf8: \"I.java\"\n" + + "// Compiled from I.java (version 1.2 : 46.0, no super bit)\n" + + "public abstract interface I {\n" + + " Constant pool:\n" + + " constant #1 class: #2 I\n" + + " constant #2 utf8: \"I\"\n" + + " constant #3 class: #4 java/lang/Object\n" + + " constant #4 utf8: \"java/lang/Object\"\n" + + " constant #5 utf8: \"SourceFile\"\n" + + " constant #6 utf8: \"I.java\"\n" + "}"; checkClassFile("I", source, expectedOutput); } @@ -2629,7 +2629,7 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { public void test072() throws Exception { String source = "package p;\n" + - "public abstract class X {\n" + + "public abstract class X {\n" + " public static final double CONST = Double.POSITIVE_INFINITY;\n" + " X(X x) {}\n" + " int foo() { return 0; }\n" + @@ -2646,73 +2646,73 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { " abstract String foo12();\n" + "}"; String expectedOutput = - "package p;\n" + - "public abstract class X {\n" + - " \n" + - " public static final double CONST = 1.0 / 0.0;\n" + - " \n" + - " X(p.X x) {\n" + - " }\n" + - " \n" + - " int foo() {\n" + - " return 0;\n" + - " }\n" + - " \n" + - " double foo2() {\n" + - " return 0;\n" + - " }\n" + - " \n" + - " byte foo3() {\n" + - " return 0;\n" + - " }\n" + - " \n" + - " char foo4() {\n" + - " return 0;\n" + - " }\n" + - " \n" + - " float foo5() {\n" + - " return 0;\n" + - " }\n" + - " \n" + - " long foo6() {\n" + - " return 0;\n" + - " }\n" + - " \n" + - " short foo7() {\n" + - " return 0;\n" + - " }\n" + - " \n" + - " java.lang.Object foo8() {\n" + - " return null;\n" + - " }\n" + - " \n" + - " boolean foo9() {\n" + - " return false;\n" + - " }\n" + - " \n" + - " void foo10() {\n" + - " }\n" + - " \n" + - " native void foo11();\n" + - " \n" + - " abstract java.lang.String foo12();\n" + + "package p;\n" + + "public abstract class X {\n" + + " \n" + + " public static final double CONST = 1.0 / 0.0;\n" + + " \n" + + " X(p.X x) {\n" + + " }\n" + + " \n" + + " int foo() {\n" + + " return 0;\n" + + " }\n" + + " \n" + + " double foo2() {\n" + + " return 0;\n" + + " }\n" + + " \n" + + " byte foo3() {\n" + + " return 0;\n" + + " }\n" + + " \n" + + " char foo4() {\n" + + " return 0;\n" + + " }\n" + + " \n" + + " float foo5() {\n" + + " return 0;\n" + + " }\n" + + " \n" + + " long foo6() {\n" + + " return 0;\n" + + " }\n" + + " \n" + + " short foo7() {\n" + + " return 0;\n" + + " }\n" + + " \n" + + " java.lang.Object foo8() {\n" + + " return null;\n" + + " }\n" + + " \n" + + " boolean foo9() {\n" + + " return false;\n" + + " }\n" + + " \n" + + " void foo10() {\n" + + " }\n" + + " \n" + + " native void foo11();\n" + + " \n" + + " abstract java.lang.String foo12();\n" + "}"; checkClassFile("p", "X", source, expectedOutput, ClassFileBytesDisassembler.WORKING_COPY); } // https://bugs.eclipse.org/bugs/show_bug.cgi?id=111219 public void test073() throws Exception { String source = - "public class X {\n" + + "public class X {\n" + " public static final double CONST = Double.POSITIVE_INFINITY;\n" + " X(X x) {}\n" + "}"; String expectedOutput = - "public class X {\n" + - " \n" + - " public static final double CONST = 1.0 / 0.0;\n" + - " \n" + - " X(X x) {\n" + - " }\n" + + "public class X {\n" + + " \n" + + " public static final double CONST = 1.0 / 0.0;\n" + + " \n" + + " X(X x) {\n" + + " }\n" + "}"; checkClassFile("", "X", source, expectedOutput, ClassFileBytesDisassembler.WORKING_COPY); } @@ -2720,60 +2720,60 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { public void test074() throws Exception { String source = "package p;\n" + - "public class X {\n" + + "public class X {\n" + " public static final double CONST = Double.POSITIVE_INFINITY;\n" + " X(X x) {}\n" + "}"; String expectedOutput = - "package p;\n" + - "public class X {\n" + - " \n" + - " public static final double CONST = 1.0 / 0.0;\n" + - " \n" + - " X(X x) {\n" + - " }\n" + + "package p;\n" + + "public class X {\n" + + " \n" + + " public static final double CONST = 1.0 / 0.0;\n" + + " \n" + + " X(X x) {\n" + + " }\n" + "}"; checkClassFile("p", "X", source, expectedOutput, ClassFileBytesDisassembler.WORKING_COPY | ClassFileBytesDisassembler.COMPACT); } - + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=111219 public void test075() throws Exception { String source = "package p;\n" + - "public class X {\n" + + "public class X {\n" + " public static final String CONST = \"\";\n" + " X(X x) {}\n" + "}"; String expectedOutput = - "package p;\n" + - "public class X {\n" + - " \n" + - " public static final String CONST = \"\";\n" + - " \n" + - " X(X x) {\n" + - " }\n" + + "package p;\n" + + "public class X {\n" + + " \n" + + " public static final String CONST = \"\";\n" + + " \n" + + " X(X x) {\n" + + " }\n" + "}"; checkClassFile("p", "X", source, expectedOutput, ClassFileBytesDisassembler.WORKING_COPY | ClassFileBytesDisassembler.COMPACT); } - + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=111219 public void test076() throws Exception { String source = - "public class X {\n" + - " void foo() {\n" + - " try {\n" + - " System.out.println(\"Hello\");\n" + - " } catch(Exception e) {\n" + - " e.printStackTrace();\n" + - " }\n" + - " }\n" + + "public class X {\n" + + " void foo() {\n" + + " try {\n" + + " System.out.println(\"Hello\");\n" + + " } catch(Exception e) {\n" + + " e.printStackTrace();\n" + + " }\n" + + " }\n" + "}"; String expectedOutput = - " Exception Table:\n" + + " Exception Table:\n" + " [pc: 0, pc: 8] -> 11 when : Exception\n"; checkClassFile("", "X", source, expectedOutput, ClassFileBytesDisassembler.DETAILED | ClassFileBytesDisassembler.COMPACT); } - + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=34373 public void test077() throws Exception { String source = @@ -2785,7 +2785,7 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { "private static class p.X$A {\n"; checkClassFile("p", "X", "X$A", source, expectedOutput, ClassFileBytesDisassembler.DETAILED | ClassFileBytesDisassembler.COMPACT); } - + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=102473 public void test078() throws Exception { String source = @@ -2811,7 +2811,7 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { } } } - + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=102473 public void test079() throws Exception { String source = @@ -2846,7 +2846,7 @@ public class ClassFileReaderTest_1_4 extends AbstractRegressionTest { } } } - + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=102473 public void test080() throws Exception { String source = |