summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/LocalInterfaceCE.java
blob: fe1905e75b36cc584623e82f3d2f2ec7c297ea7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** @testcase PR721 interface declaration not permitted in local method scope */
public class LocalInterfaceCE {
    void method() {
        interface Local {}   // CE 5 interface not allowed here
    } 
    static {
        interface Local {}   // CE 8 interface not allowed here
    }
    static void staticMethod() {
        interface Local {}   // CE 11 interface not allowed here
    }
    class Inner {
        void method() {
            interface Local {}   // CE 15 interface not allowed here
        } 
    }
}