Mon, 26 Mar 2012 15:28:22 +0100
7151492: Encapsulate check logic into Attr.ResultInfo
Summary: ResultInfo class should be used to make attribution code transparent w.r.t. check logic being used
Reviewed-by: jjg, dlsmith
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 }