summaryrefslogtreecommitdiffstats
path: root/tests/bugs151
diff options
context:
space:
mode:
authoraclement <aclement>2006-02-21 15:52:36 +0000
committeraclement <aclement>2006-02-21 15:52:36 +0000
commit7a2087ef985e8af73045bac1e7e0195bb87c7f40 (patch)
treee73cc35de1b7afd280aad528bf763de31ee66c05 /tests/bugs151
parent14fc00e3e4a1f203286d1d4fd530530db8843143 (diff)
downloadaspectj-7a2087ef985e8af73045bac1e7e0195bb87c7f40.tar.gz
aspectj-7a2087ef985e8af73045bac1e7e0195bb87c7f40.zip
test and fix for 128744 (or at least the LTW problem Sian hit whilst debugging it...)
Diffstat (limited to 'tests/bugs151')
-rw-r--r--tests/bugs151/pr128744/Hello.java17
-rw-r--r--tests/bugs151/pr128744/World.java9
-rw-r--r--tests/bugs151/pr128744/aop.xml11
3 files changed, 37 insertions, 0 deletions
diff --git a/tests/bugs151/pr128744/Hello.java b/tests/bugs151/pr128744/Hello.java
new file mode 100644
index 000000000..268239ebc
--- /dev/null
+++ b/tests/bugs151/pr128744/Hello.java
@@ -0,0 +1,17 @@
+
+public class Hello {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ // TODO Auto-generated method stub
+ //System.out.println("main");
+ sayHello();
+ }
+
+ public static void sayHello(){
+ System.out.println("Hello");
+ }
+
+}
diff --git a/tests/bugs151/pr128744/World.java b/tests/bugs151/pr128744/World.java
new file mode 100644
index 000000000..542f1a665
--- /dev/null
+++ b/tests/bugs151/pr128744/World.java
@@ -0,0 +1,9 @@
+
+
+public abstract aspect World {
+ public abstract pointcut monitoredOperation();
+
+ after() : monitoredOperation() {
+ System.out.println("World");
+ }
+}
diff --git a/tests/bugs151/pr128744/aop.xml b/tests/bugs151/pr128744/aop.xml
new file mode 100644
index 000000000..f93ebc417
--- /dev/null
+++ b/tests/bugs151/pr128744/aop.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<aspectj>
+ <aspects>
+ <aspect name="World" />
+ <concrete-aspect name="World1" extends="World">
+ <pointcut name="monitoredOperation" expression="execution(* sayHello())" />
+ </concrete-aspect>
+ </aspects>
+
+ <weaver options="-verbose -showWeaveInfo" />
+</aspectj> \ No newline at end of file