test/tools/javac/T7042623.java

Mon, 24 Oct 2011 13:00:30 +0100

author
mcimadamore
date
Mon, 24 Oct 2011 13:00:30 +0100
changeset 1114
05814303a056
parent 0
959103a6100f
child 2134
b0c086cd4520
permissions
-rw-r--r--

7098660: Write better overload resolution/inference tests
Summary: Add overload/inference debug diagnostics - added test harness using annotations to check outcome of overload resolution/inference
Reviewed-by: jjg

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 7042623
     4  * @summary Regression: javac silently crash when attributing non-existent annotation
     5  * @compile/fail/ref=T7042623.out -XDrawDiagnostics -XDdev T7042623.java
     6  */
     8 @interface Defined2 {}
    10 @Undefined1(@Defined2)
    11 class Test1{}

mercurial