Lines 31-37
Link Here
|
31 |
// All specified tests which does not belong to the class are skipped... |
31 |
// All specified tests which does not belong to the class are skipped... |
32 |
static { |
32 |
static { |
33 |
// TESTS_NAMES = new String[] { "test0788" }; |
33 |
// TESTS_NAMES = new String[] { "test0788" }; |
34 |
// TESTS_NUMBERS = new int[] { 1368 }; |
34 |
// TESTS_NUMBERS = new int[] { 1369 }; |
35 |
// TESTS_RANGE = new int[] { 1097, -1 }; |
35 |
// TESTS_RANGE = new int[] { 1097, -1 }; |
36 |
} |
36 |
} |
37 |
public static Test suite() { |
37 |
public static Test suite() { |
Lines 45958-45961
Link Here
|
45958 |
}, |
45958 |
}, |
45959 |
""); |
45959 |
""); |
45960 |
} |
45960 |
} |
|
|
45961 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=244164 |
45962 |
public void test1369() { |
45963 |
this.runNegativeTest( |
45964 |
new String[] { |
45965 |
"X.java", //----------------------------------------------------------------------- |
45966 |
"import java.util.HashMap;\n" + |
45967 |
"import java.util.Map;\n" + |
45968 |
"public class X {\n" + |
45969 |
" private static Map<String, Zork> map = new HashMap<String, X>();\n" + |
45970 |
" public static X foo(String s) {\n" + |
45971 |
" return map.get(s);\n" + |
45972 |
" }\n" + |
45973 |
"}",//----------------------------------------------------------------------- |
45974 |
}, |
45975 |
"----------\n" + |
45976 |
"1. ERROR in X.java (at line 4)\n" + |
45977 |
" private static Map<String, Zork> map = new HashMap<String, X>();\n" + |
45978 |
" ^^^^\n" + |
45979 |
"Zork cannot be resolved to a type\n" + |
45980 |
"----------\n" + |
45981 |
"2. ERROR in X.java (at line 6)\n" + |
45982 |
" return map.get(s);\n" + |
45983 |
" ^^^\n" + |
45984 |
"Map<String,Zork> cannot be resolved to a type\n" + |
45985 |
"----------\n"); |
45986 |
} |
45961 |
} |
45987 |
} |