diff options
Diffstat (limited to 'tests/pureJava/InterfaceAndInner.java')
-rw-r--r-- | tests/pureJava/InterfaceAndInner.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pureJava/InterfaceAndInner.java b/tests/pureJava/InterfaceAndInner.java new file mode 100644 index 000000000..40677896f --- /dev/null +++ b/tests/pureJava/InterfaceAndInner.java @@ -0,0 +1,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())" ); + + } +} |