summaryrefslogtreecommitdiffstats
path: root/tests/new/AspectInInterfaceCF.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/AspectInInterfaceCF.java')
-rw-r--r--tests/new/AspectInInterfaceCF.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/new/AspectInInterfaceCF.java b/tests/new/AspectInInterfaceCF.java
new file mode 100644
index 000000000..dbba0473a
--- /dev/null
+++ b/tests/new/AspectInInterfaceCF.java
@@ -0,0 +1,17 @@
+
+import org.aspectj.testing.Tester;
+public class AspectInInterfaceCF {
+ public static void main(String[] args) {
+ Tester.checkEvents("before");
+ }
+}
+
+interface HasPrivateAspect {
+ /** @testcase PR#534 static aspect in interface causes CE if - usejavac */
+ private static aspect Inner {
+ before(): execution(* main(..)) { Tester.event("before"); }
+ }
+ protected static aspect Inner1 {
+ before(): execution(* main(..)) { Tester.event("before"); }
+ }
+}