aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-14 16:51:03 +0000
committeraclement <aclement>2005-11-14 16:51:03 +0000
commit06d8ef35d6035a19671504d21907368150f0aa2c (patch)
treefb45592d3591c92db2d9ff681a090d32d33f7cd9 /tests/bugs150
parent132f675da7177a41cf0ebfe2f87eee1d68c9e241 (diff)
downloadaspectj-06d8ef35d6035a19671504d21907368150f0aa2c.tar.gz
aspectj-06d8ef35d6035a19671504d21907368150f0aa2c.zip
testcode for 114436
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr114436/ConcreteSimpleTracing.aj4
-rw-r--r--tests/bugs150/pr114436/SimpleTrace.aj8
-rw-r--r--tests/bugs150/pr114436/TestClass.java13
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");
+ }
+}