diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/pr114436/ConcreteSimpleTracing.aj | 4 | ||||
-rw-r--r-- | tests/bugs150/pr114436/SimpleTrace.aj | 8 | ||||
-rw-r--r-- | tests/bugs150/pr114436/TestClass.java | 13 |
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs150/pr114436/ConcreteSimpleTracing.aj b/tests/bugs150/pr114436/ConcreteSimpleTracing.aj new file mode 100644 index 000000000..22d5d0b84 --- /dev/null +++ b/tests/bugs150/pr114436/ConcreteSimpleTracing.aj @@ -0,0 +1,4 @@ +aspect ConcreteSimpleTracing extends SimpleTracing +{ + pointcut tracedCall(): execution(void doSomething(String)); +} diff --git a/tests/bugs150/pr114436/SimpleTrace.aj b/tests/bugs150/pr114436/SimpleTrace.aj new file mode 100644 index 000000000..6fe2d6f42 --- /dev/null +++ b/tests/bugs150/pr114436/SimpleTrace.aj @@ -0,0 +1,8 @@ +abstract aspect SimpleTracing perthis(tracedCall()) +{ + abstract pointcut tracedCall(); + + before(): tracedCall() { + System.out.println("Entering: " + thisJoinPoint); + } +} diff --git a/tests/bugs150/pr114436/TestClass.java b/tests/bugs150/pr114436/TestClass.java new file mode 100644 index 000000000..567020e82 --- /dev/null +++ b/tests/bugs150/pr114436/TestClass.java @@ -0,0 +1,13 @@ +public class TestClass +{ + public void doSomething(String stuff) + { + System.out.println("TestClass.doSomething(\""+stuff+"\")"); + } + + public static void main(String[] args) + { + TestClass test = new TestClass(); + test.doSomething("withThis"); + } +} |