summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/InterfaceAndInner.java
blob: 40677896f37aef6f6b3505f74066f26c47ad417c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import org.aspectj.testing.Tester;

import java.lang.reflect.Modifier;

public class InterfaceAndInner {
    public static void main(String[] args) {
        Object o = new InterfaceAndInnerHelper.C();
        Tester.check(o instanceof InterfaceAndInnerHelper.C,
                    "! o instanceof InterfaceAndInnerHelper.C" );
        Class c = o.getClass();
        Tester.check(Modifier.isStatic(c.getModifiers()),
                    "! Modifier.isStatic(c.getModifiers())" );
        Tester.check(Modifier.isPublic(c.getModifiers()),
                    "! Modifier.isPublic(c.getModifiers())" );
        
    }
}