test/tools/javac/ExtendArray.java

Fri, 24 Oct 2008 12:46:34 +0100

author
mcimadamore
date
Fri, 24 Oct 2008 12:46:34 +0100
changeset 161
ddd75a295501
parent 1
9a66ca7c79fa
child 288
d402db1005ad
permissions
-rw-r--r--

6758789: Some method resolution diagnostic should be improved
Summary: Recent work on diagnostics left out some resolution corner cases
Reviewed-by: jjg

duke@1 1 /*
duke@1 2 * @test /nodynamiccopyright/
duke@1 3 * @bug 4336282 4785453
duke@1 4 * @summary Verify that extending an erray class does not crash the compiler.
duke@1 5 *
duke@1 6 * @compile/fail/ref=ExtendArray.out -XDstdout -XDdiags=%b:%l:%_%m ExtendArray.java
duke@1 7 */
duke@1 8
duke@1 9 // Note that an error is expected, but not a crash.
duke@1 10
duke@1 11 public class ExtendArray extends Object[] {}

mercurial