source: trunk/openjdk/langtools/test/tools/javac/T6882235.java

Last change on this file was 2, checked in by dmik, 15 years ago

Imported OpenJDK 6 b19 sources from Oracle.

File size: 391 bytes
Line 
1/*
2 * @test /nodynamiccopyright/
3 * @bug 6882235
4 * @summary invalid exponent causes silent javac crash
5 *
6 * @compile/fail T6882235.java
7 * @compile/fail/ref=T6882235.out -XDrawDiagnostics T6882235.java
8 */
9
10class T6882235 {
11 int i = ; // invalid expression
12 float f = 0e*; // invalid exponent, should not crash compiler
13 int j = ; // invalid expression
14}
Note: See TracBrowser for help on using the repository browser.