From 06d8ef35d6035a19671504d21907368150f0aa2c Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 14 Nov 2005 16:51:03 +0000 Subject: testcode for 114436 --- tests/bugs150/pr114436/ConcreteSimpleTracing.aj | 4 ++++ tests/bugs150/pr114436/SimpleTrace.aj | 8 ++++++++ tests/bugs150/pr114436/TestClass.java | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 tests/bugs150/pr114436/ConcreteSimpleTracing.aj create mode 100644 tests/bugs150/pr114436/SimpleTrace.aj create mode 100644 tests/bugs150/pr114436/TestClass.java (limited to 'tests/bugs150/pr114436') 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"); + } +} -- cgit v1.2.3