langtools/test/tools/javac/ExtendArray.java
author jjg
Wed, 29 Oct 2014 17:25:23 -0700 (2014-10-30)
changeset 27319 030080f03e4f
parent 6150 d055fa8ced62
permissions -rw-r--r--
8062348: langtools tests should close file manager (group 1) Reviewed-by: darcy
/*
 * @test  /nodynamiccopyright/
 * @bug 4336282 4785453
 * @summary Verify that extending an erray class does not crash the compiler.
 *
 * @compile/fail/ref=ExtendArray.out -XDrawDiagnostics ExtendArray.java
 */

// Note that an error is expected, but not a crash.

public class ExtendArray extends Object[] {}