diff options
Diffstat (limited to 'tests/bugs/jpOptimization/de')
-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"); + } +} |