diff options
author | acolyer <acolyer> | 2003-10-23 15:27:31 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2003-10-23 15:27:31 +0000 |
commit | 9eb88f6b23c37afdbc754e9b591f90722ef9c8a4 (patch) | |
tree | 1110ab644a1419b7cf41bb92ec010097bf393473 /tests/bugs/jpOptimization | |
parent | 304604afdbfa1fa27890f693e0d9165b1b525834 (diff) | |
download | aspectj-9eb88f6b23c37afdbc754e9b591f90722ef9c8a4.tar.gz aspectj-9eb88f6b23c37afdbc754e9b591f90722ef9c8a4.zip |
test case for bug 45441 - joinpoint optimization when targetting 1.4
Diffstat (limited to 'tests/bugs/jpOptimization')
-rw-r--r-- | tests/bugs/jpOptimization/de/test/MyAspect.java | 8 | ||||
-rw-r--r-- | tests/bugs/jpOptimization/de/test/MyMain.java | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs/jpOptimization/de/test/MyAspect.java b/tests/bugs/jpOptimization/de/test/MyAspect.java new file mode 100644 index 000000000..54c204a09 --- /dev/null +++ b/tests/bugs/jpOptimization/de/test/MyAspect.java @@ -0,0 +1,8 @@ +package de.test; + +public aspect MyAspect { + + before(): execution(void MyMain.sayHello(..)) { + System.out.println("before: " + thisJoinPoint.getSignature()); + } +} diff --git a/tests/bugs/jpOptimization/de/test/MyMain.java b/tests/bugs/jpOptimization/de/test/MyMain.java new file mode 100644 index 000000000..77a3358ed --- /dev/null +++ b/tests/bugs/jpOptimization/de/test/MyMain.java @@ -0,0 +1,13 @@ +package de.test; + +public class MyMain { + + public static void main(String[] args) { + MyMain m = new MyMain(); + m.sayHello(); + } + + public void sayHello() { + System.out.println("hello"); + } +} |