Lines 1562-1567
Link Here
|
1562 |
"incorrect classpath: dummy\n", |
1562 |
"incorrect classpath: dummy\n", |
1563 |
false); |
1563 |
false); |
1564 |
} |
1564 |
} |
|
|
1565 |
// Generics: wrong error level and message - https://bugs.eclipse.org/bugs/show_bug.cgi?id=97494 |
1566 |
public void _test029(){ |
1567 |
this.runNegativeTest( |
1568 |
new String[] { |
1569 |
"X.java", |
1570 |
"/** */\n" + |
1571 |
"public class X<T> {\n" + |
1572 |
" protected static final Class<X<?>> theClass = (Class<X<?>>) X.class;\n" + |
1573 |
"}\n" |
1574 |
}, |
1575 |
"\"" + OUTPUT_DIR + File.separator + "X.java\"" |
1576 |
+ " -1.5 -g -preserveAllLocals" |
1577 |
+ " -verbose -warn:+deprecation,syntheticAccess,uselessTypeCheck,unsafe,finalBound,unusedLocal" |
1578 |
+ " -proceedOnError -referenceInfo -d \"" + OUTPUT_DIR + "\"", |
1579 |
"", |
1580 |
"ERROR", // replace with javac-like message when it is available |
1581 |
true); |
1582 |
} |
1565 |
public static Class testClass() { |
1583 |
public static Class testClass() { |
1566 |
return BatchCompilerTest.class; |
1584 |
return BatchCompilerTest.class; |
1567 |
} |
1585 |
} |