test/tools/javac/InterfaceInInner.java

Tue, 10 Apr 2012 08:15:25 -0700

author
ohair
date
Tue, 10 Apr 2012 08:15:25 -0700
changeset 1244
807ca8ffbeb4
parent 890
3ab7bb46c5c1
child 2525
2eb010b6cb22
permissions
-rw-r--r--

7074397: Build infrastructure changes (makefile re-write)
Summary: New makefiles transition, old and new living side by side for now.
Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser
Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>

     1 /*
     2  * @test  /nodynamiccopyright/
     3  * @bug 4063740 6969184
     4  * @summary Interfaces may only be declared in top level classes.
     5  * @author turnidge
     6  *
     7  * @compile/fail/ref=InterfaceInInner.out -XDrawDiagnostics InterfaceInInner.java
     8  */
     9 class InterfaceInInner {
    10     InterfaceInInner() {
    11         class foo {
    12             interface A {
    13             }
    14         }
    15     }
    16 }

mercurial