Lines 1559-1564
Link Here
|
1559 |
"Zork cannot be resolved to a type\n" + |
1559 |
"Zork cannot be resolved to a type\n" + |
1560 |
"----------\n"); |
1560 |
"----------\n"); |
1561 |
} |
1561 |
} |
|
|
1562 |
public void test042() { |
1563 |
this.runConformTest( |
1564 |
new String[] { |
1565 |
"X.java", |
1566 |
"import java.util.List;\n" + |
1567 |
"public class X {\n" + |
1568 |
" public static void main(String[] args) {\n" + |
1569 |
" System.out.print(\"SUCCESS\"); \n" + |
1570 |
" }\n" + |
1571 |
" \n" + |
1572 |
" public static void foo(boolean b, List l) {\n" + |
1573 |
" if (b) {\n" + |
1574 |
" String s = (String) l.get(0);\n" + |
1575 |
" }\n" + |
1576 |
" }\n" + |
1577 |
"}", |
1578 |
}, |
1579 |
"SUCCESS"); |
1580 |
} |
1562 |
public static Class testClass() { |
1581 |
public static Class testClass() { |
1563 |
return CastTest.class; |
1582 |
return CastTest.class; |
1564 |
} |
1583 |
} |