aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs151
diff options
context:
space:
mode:
authoraclement <aclement>2006-02-01 15:20:37 +0000
committeraclement <aclement>2006-02-01 15:20:37 +0000
commit1d41626c3d8489acf9a630d9236a9ecdf912363d (patch)
tree1ce3c359e143d8accaebbe46411ba1fb1eb7e759 /tests/bugs151
parentb913ddec0a176758ab95a6e7df378f66607aa44c (diff)
downloadaspectj-1d41626c3d8489acf9a630d9236a9ecdf912363d.tar.gz
aspectj-1d41626c3d8489acf9a630d9236a9ecdf912363d.zip
testcode for 125699 and 125810 from matthew. test for 125699 commented out.
Diffstat (limited to 'tests/bugs151')
-rw-r--r--tests/bugs151/pr125699/AtTestTracing.java7
-rw-r--r--tests/bugs151/pr125699/TestTracing.aj2
-rw-r--r--tests/bugs151/pr125699/Tracing.aj16
-rw-r--r--tests/bugs151/pr125810/SubAspect.aj5
-rw-r--r--tests/bugs151/pr125810/SubAtAspect.java6
-rw-r--r--tests/bugs151/pr125810/SuperAspect.aj4
6 files changed, 40 insertions, 0 deletions
diff --git a/tests/bugs151/pr125699/AtTestTracing.java b/tests/bugs151/pr125699/AtTestTracing.java
new file mode 100644
index 000000000..32d380f8b
--- /dev/null
+++ b/tests/bugs151/pr125699/AtTestTracing.java
@@ -0,0 +1,7 @@
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Pointcut;
+
+@Aspect
+public class AtTestTracing extends Tracing {
+
+}
diff --git a/tests/bugs151/pr125699/TestTracing.aj b/tests/bugs151/pr125699/TestTracing.aj
new file mode 100644
index 000000000..1de7054bb
--- /dev/null
+++ b/tests/bugs151/pr125699/TestTracing.aj
@@ -0,0 +1,2 @@
+public aspect TestTracing extends Tracing {
+}
diff --git a/tests/bugs151/pr125699/Tracing.aj b/tests/bugs151/pr125699/Tracing.aj
new file mode 100644
index 000000000..bff3a8101
--- /dev/null
+++ b/tests/bugs151/pr125699/Tracing.aj
@@ -0,0 +1,16 @@
+public abstract aspect Tracing {
+
+ before (Object obj) : execution(* *(..)) && this(obj) {
+ System.out.println(thisJoinPoint);
+ }
+
+// before (Object obj) : execution(* *(..)) && this(obj) {
+ before () : execution(* *(..)) {
+ System.out.println(thisJoinPointStaticPart);
+ }
+
+// before (Object obj) : execution(* *(..)) && this(obj) {
+ before () : execution(* *(..)) && this(Object) {
+ System.out.println(thisEnclosingJoinPointStaticPart);
+ }
+}
diff --git a/tests/bugs151/pr125810/SubAspect.aj b/tests/bugs151/pr125810/SubAspect.aj
new file mode 100644
index 000000000..9a3a964a0
--- /dev/null
+++ b/tests/bugs151/pr125810/SubAspect.aj
@@ -0,0 +1,5 @@
+public aspect SubAspect extends SuperAspect {
+
+// protected pointcut scope();
+
+}
diff --git a/tests/bugs151/pr125810/SubAtAspect.java b/tests/bugs151/pr125810/SubAtAspect.java
new file mode 100644
index 000000000..78e85b5f4
--- /dev/null
+++ b/tests/bugs151/pr125810/SubAtAspect.java
@@ -0,0 +1,6 @@
+import org.aspectj.lang.annotation.Aspect;
+
+@Aspect
+public class SubAtAspect extends SuperAspect {
+
+}
diff --git a/tests/bugs151/pr125810/SuperAspect.aj b/tests/bugs151/pr125810/SuperAspect.aj
new file mode 100644
index 000000000..1f34881a6
--- /dev/null
+++ b/tests/bugs151/pr125810/SuperAspect.aj
@@ -0,0 +1,4 @@
+public abstract aspect SuperAspect {
+
+ protected abstract pointcut scope ();
+}