jdk-24/langtools/test/tools/javac/ExtendArray.java
Maurizio Cimadamore a74aa28243 6722234: javac diagnostics need better integration with the type-system
Added RichDiagnosticFormatter which provides better formatting capabilities for javac types/symbols

Reviewed-by: jjg
2009-05-21 10:56:36 +01:00

12 lines
324 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4336282 4785453
* @summary Verify that extending an erray class does not crash the compiler.
*
* @compile/fail/ref=ExtendArray.out -XDstdout -XDrawDiagnostics ExtendArray.java
*/
// Note that an error is expected, but not a crash.
public class ExtendArray extends Object[] {}