test/tools/javac/T4994049/T4994049.java

Thu, 23 Oct 2008 18:29:11 +0100

author
mcimadamore
date
Thu, 23 Oct 2008 18:29:11 +0100
changeset 158
c6e3fc6dda61
parent 1
9a66ca7c79fa
child 611
4172cfff05f0
permissions
-rw-r--r--

6557954: Inner class type parameters doesn't get substituted when checking type well-formedness
Summary: Validator.visitTypeApply should substitute all formal typevars with actual parameters
Reviewed-by: jjg

     1 /*
     2  * @test  /nodynamiccopyright/
     3  * @bug     4994049
     4  * @summary Improved diagnostics while parsing enums
     5  * @author  Peter von der Ah\u00e9
     6  * @compile/fail/ref=T4994049.out -XDstdout -XDrawDiagnostics T4994049.java
     7  */
     9 public enum T4994049 {
    10     FOO {
    11     }
    13     BAR;
    14 }

mercurial