diff options
author | aclement <aclement> | 2006-11-17 11:18:59 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-11-17 11:18:59 +0000 |
commit | 6870da4cbcfbf6b2ec267d50e2bcc04fd32bcaeb (patch) | |
tree | 0cebe8f8a0614697f4e6bb09785f747517ab468a /tests/bugs153 | |
parent | 39c89755c36f19f98c4775a0a7369c7bd810435a (diff) | |
download | aspectj-6870da4cbcfbf6b2ec267d50e2bcc04fd32bcaeb.tar.gz aspectj-6870da4cbcfbf6b2ec267d50e2bcc04fd32bcaeb.zip |
tests and fixes for pr164384
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr164384/Hello.java | 15 | ||||
-rw-r--r-- | tests/bugs153/pr164384/MainClass.java | 11 | ||||
-rw-r--r-- | tests/bugs153/pr164384/MyAnnotation.java | 9 | ||||
-rw-r--r-- | tests/bugs153/pr164384/README.txt | 5 | ||||
-rw-r--r-- | tests/bugs153/pr164384/WorldAspect.aj | 13 | ||||
-rw-r--r-- | tests/bugs153/pr164384/library.jar | bin | 0 -> 1069 bytes | |||
-rw-r--r-- | tests/bugs153/pr164384_2/MainClass.java | 9 |
7 files changed, 62 insertions, 0 deletions
diff --git a/tests/bugs153/pr164384/Hello.java b/tests/bugs153/pr164384/Hello.java new file mode 100644 index 000000000..c5d23b9df --- /dev/null +++ b/tests/bugs153/pr164384/Hello.java @@ -0,0 +1,15 @@ +package pkg; + +public class Hello { + + @MyAnnotation + public void sayHello() { + System.out.println("hello"); + int counter = 0; + for (int i = 0; i < 10; i++) { + counter = i; + } + + } + +} diff --git a/tests/bugs153/pr164384/MainClass.java b/tests/bugs153/pr164384/MainClass.java new file mode 100644 index 000000000..f809d4ef5 --- /dev/null +++ b/tests/bugs153/pr164384/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/bugs153/pr164384/MyAnnotation.java b/tests/bugs153/pr164384/MyAnnotation.java new file mode 100644 index 000000000..fc10a566c --- /dev/null +++ b/tests/bugs153/pr164384/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/bugs153/pr164384/README.txt b/tests/bugs153/pr164384/README.txt new file mode 100644 index 000000000..f676dd47a --- /dev/null +++ b/tests/bugs153/pr164384/README.txt @@ -0,0 +1,5 @@ +to build library.jar: + +Compile the classes with a java6 jvm: javac Hello.java MyAnnotation.java + +Create the jar file: jar cf library.jar Hello.class MyAnnotation.class diff --git a/tests/bugs153/pr164384/WorldAspect.aj b/tests/bugs153/pr164384/WorldAspect.aj new file mode 100644 index 000000000..781e804e6 --- /dev/null +++ b/tests/bugs153/pr164384/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"); + } + +} diff --git a/tests/bugs153/pr164384/library.jar b/tests/bugs153/pr164384/library.jar Binary files differnew file mode 100644 index 000000000..baa98fa95 --- /dev/null +++ b/tests/bugs153/pr164384/library.jar diff --git a/tests/bugs153/pr164384_2/MainClass.java b/tests/bugs153/pr164384_2/MainClass.java new file mode 100644 index 000000000..c3b4f2241 --- /dev/null +++ b/tests/bugs153/pr164384_2/MainClass.java @@ -0,0 +1,9 @@ +package pack; + +public class MainClass { + + public static void main(String[] args) { + + } + +} |