summaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental
diff options
context:
space:
mode:
authoraclement <aclement>2006-11-17 11:18:59 +0000
committeraclement <aclement>2006-11-17 11:18:59 +0000
commit6870da4cbcfbf6b2ec267d50e2bcc04fd32bcaeb (patch)
tree0cebe8f8a0614697f4e6bb09785f747517ab468a /tests/multiIncremental
parent39c89755c36f19f98c4775a0a7369c7bd810435a (diff)
downloadaspectj-6870da4cbcfbf6b2ec267d50e2bcc04fd32bcaeb.tar.gz
aspectj-6870da4cbcfbf6b2ec267d50e2bcc04fd32bcaeb.zip
tests and fixes for pr164384
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r--tests/multiIncremental/PR164384/base/Hello.java10
-rw-r--r--tests/multiIncremental/PR164384/base/MainClass.java11
-rw-r--r--tests/multiIncremental/PR164384/base/MyAnnotation.java9
-rw-r--r--tests/multiIncremental/PR164384/base/WorldAspect.aj13
4 files changed, 43 insertions, 0 deletions
diff --git a/tests/multiIncremental/PR164384/base/Hello.java b/tests/multiIncremental/PR164384/base/Hello.java
new file mode 100644
index 000000000..6aafc5963
--- /dev/null
+++ b/tests/multiIncremental/PR164384/base/Hello.java
@@ -0,0 +1,10 @@
+package pkg;
+
+public class Hello {
+
+ @MyAnnotation
+ public void sayHello() {
+ System.out.println("hello");
+ }
+
+}
diff --git a/tests/multiIncremental/PR164384/base/MainClass.java b/tests/multiIncremental/PR164384/base/MainClass.java
new file mode 100644
index 000000000..f809d4ef5
--- /dev/null
+++ b/tests/multiIncremental/PR164384/base/MainClass.java
@@ -0,0 +1,11 @@
+package pack;
+
+import pkg.Hello;
+
+public class MainClass {
+
+ public static void main(String[] args) {
+ new Hello().sayHello();
+ }
+
+}
diff --git a/tests/multiIncremental/PR164384/base/MyAnnotation.java b/tests/multiIncremental/PR164384/base/MyAnnotation.java
new file mode 100644
index 000000000..fc10a566c
--- /dev/null
+++ b/tests/multiIncremental/PR164384/base/MyAnnotation.java
@@ -0,0 +1,9 @@
+package pkg;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+
+@Target(ElementType.METHOD)
+public @interface MyAnnotation {
+
+}
diff --git a/tests/multiIncremental/PR164384/base/WorldAspect.aj b/tests/multiIncremental/PR164384/base/WorldAspect.aj
new file mode 100644
index 000000000..781e804e6
--- /dev/null
+++ b/tests/multiIncremental/PR164384/base/WorldAspect.aj
@@ -0,0 +1,13 @@
+package pack;
+
+import pkg.MyAnnotation;
+
+public aspect WorldAspect {
+
+ pointcut exec() : execution(@MyAnnotation * *.*(..));
+
+ after() returning : exec() {
+ System.out.println("world");
+ }
+
+}