Lines 38-44
Link Here
|
38 |
// All specified tests which do not belong to the class are skipped... |
38 |
// All specified tests which do not belong to the class are skipped... |
39 |
static { |
39 |
static { |
40 |
// TESTS_NAMES = new String[] { "test127" }; |
40 |
// TESTS_NAMES = new String[] { "test127" }; |
41 |
// TESTS_NUMBERS = new int[] { 188 }; |
41 |
// TESTS_NUMBERS = new int[] { 196 }; |
42 |
// TESTS_RANGE = new int[] { 169, 180 }; |
42 |
// TESTS_RANGE = new int[] { 169, 180 }; |
43 |
} |
43 |
} |
44 |
|
44 |
|
Lines 6413-6416
Link Here
|
6413 |
"Zork cannot be resolved to a type\n" + |
6413 |
"Zork cannot be resolved to a type\n" + |
6414 |
"----------\n"); |
6414 |
"----------\n"); |
6415 |
} |
6415 |
} |
|
|
6416 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=133440 |
6417 |
public void test196() { |
6418 |
this.runNegativeTest( |
6419 |
new String[] { |
6420 |
"X.java", |
6421 |
"public @interface X {\n" + |
6422 |
" enum MyEnum {\n" + |
6423 |
" VAL_1, VAL_2\n" + |
6424 |
" }\n" + |
6425 |
" public MyEnum theValue() default null;\n" + |
6426 |
"}" |
6427 |
}, |
6428 |
"----------\n" + |
6429 |
"1. ERROR in X.java (at line 5)\n" + |
6430 |
" public MyEnum theValue() default null;\n" + |
6431 |
" ^^^^\n" + |
6432 |
"The value for annotation attribute X.theValue must be a constant expression\n" + |
6433 |
"----------\n"); |
6434 |
} |
6416 |
} |
6435 |
} |