Lines 31-37
Link Here
|
31 |
static { |
31 |
static { |
32 |
// TESTS_PREFIX = "testBug95521"; |
32 |
// TESTS_PREFIX = "testBug95521"; |
33 |
// TESTS_NAMES = new String[] { "testBug83127a" }; |
33 |
// TESTS_NAMES = new String[] { "testBug83127a" }; |
34 |
// TESTS_NUMBERS = new int[] { 40, 41 }; |
34 |
// TESTS_NUMBERS = new int[] { 42 }; |
35 |
// TESTS_RANGE = new int[] { 23 -1,}; |
35 |
// TESTS_RANGE = new int[] { 23 -1,}; |
36 |
} |
36 |
} |
37 |
public static Test suite() { |
37 |
public static Test suite() { |
Lines 6235-6238
Link Here
|
6235 |
" [pc: 11, append: {java.lang.Object}]\n"; |
6235 |
" [pc: 11, append: {java.lang.Object}]\n"; |
6236 |
checkDisassembledClassFile(OUTPUT_DIR + File.separator + "X.class", "X", expectedOutput); |
6236 |
checkDisassembledClassFile(OUTPUT_DIR + File.separator + "X.class", "X", expectedOutput); |
6237 |
} |
6237 |
} |
|
|
6238 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=260031 |
6239 |
public void test042() throws Exception { |
6240 |
this.runConformTest( |
6241 |
new String[] { |
6242 |
"X.java", |
6243 |
"public class X {\n" + |
6244 |
" private static void foo(Class<?> c, int n) { }\n" + |
6245 |
" public static void main(String... args) {\n" + |
6246 |
" foo(Integer.class, (args == null ? -1 : 1));\n" + |
6247 |
" }\n" + |
6248 |
"}", |
6249 |
}, |
6250 |
""); |
6251 |
|
6252 |
String expectedOutput = |
6253 |
" // Stack: 2, Locals: 1\n" + |
6254 |
" public static void main(java.lang.String... args);\n" + |
6255 |
" 0 ldc <Class java.lang.Integer> [26]\n" + |
6256 |
" 2 aload_0 [args]\n" + |
6257 |
" 3 ifnonnull 10\n" + |
6258 |
" 6 iconst_m1\n" + |
6259 |
" 7 goto 11\n" + |
6260 |
" 10 iconst_1\n" + |
6261 |
" 11 invokestatic X.foo(java.lang.Class, int) : void [28]\n" + |
6262 |
" 14 return\n" + |
6263 |
" Line numbers:\n" + |
6264 |
" [pc: 0, line: 4]\n" + |
6265 |
" [pc: 14, line: 5]\n" + |
6266 |
" Local variable table:\n" + |
6267 |
" [pc: 0, pc: 15] local: args index: 0 type: java.lang.String[]\n" + |
6268 |
" Stack map table: number of frames 2\n" + |
6269 |
" [pc: 10, same_locals_1_stack_item, stack: {java.lang.Class}]\n" + |
6270 |
" [pc: 11, full, stack: {java.lang.Class, int}, locals: {java.lang.String[]}]\n"; |
6271 |
checkDisassembledClassFile(OUTPUT_DIR + File.separator + "X.class", "X", expectedOutput); |
6272 |
} |
6238 |
} |
6273 |
} |