diff options
author | aclement <aclement> | 2006-06-12 13:09:51 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-06-12 13:09:51 +0000 |
commit | 4dcb8f3d88ed5e464bf31378d9c222fdf791ff4a (patch) | |
tree | 33e156385995a2fa2194b72a6ba29a7e73ba38f4 /tests/bugs152 | |
parent | 75afb31e38f75e61de5c15058d3332f3dac0df15 (diff) | |
download | aspectj-4dcb8f3d88ed5e464bf31378d9c222fdf791ff4a.tar.gz aspectj-4dcb8f3d88ed5e464bf31378d9c222fdf791ff4a.zip |
test and fix for 145963: faulting in aspects coming in as binary inputs
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr145963/A.aj | 10 | ||||
-rw-r--r-- | tests/bugs152/pr145963/ClassForAspectPath.java | 12 | ||||
-rw-r--r-- | tests/bugs152/pr145963/Deow.aj | 7 | ||||
-rw-r--r-- | tests/bugs152/pr145963/Itd.aj | 7 | ||||
-rw-r--r-- | tests/bugs152/pr145963/NewClass.java | 5 | ||||
-rw-r--r-- | tests/bugs152/pr145963/adviceAndDeow.jar | bin | 0 -> 3607 bytes |
6 files changed, 41 insertions, 0 deletions
diff --git a/tests/bugs152/pr145963/A.aj b/tests/bugs152/pr145963/A.aj new file mode 100644 index 000000000..657c79b36 --- /dev/null +++ b/tests/bugs152/pr145963/A.aj @@ -0,0 +1,10 @@ +package pkg; + +public aspect A { + + pointcut p() : execution(* *.*(..)) && !within(pkg.*); + + before() : p() { + } + +} diff --git a/tests/bugs152/pr145963/ClassForAspectPath.java b/tests/bugs152/pr145963/ClassForAspectPath.java new file mode 100644 index 000000000..0494c9c84 --- /dev/null +++ b/tests/bugs152/pr145963/ClassForAspectPath.java @@ -0,0 +1,12 @@ +public class ClassForAspectPath { + + public static void main(String[] args) { + new ClassForAspectPath().method(); + + } + + public void method() { + System.out.println("blah"); + } + +} diff --git a/tests/bugs152/pr145963/Deow.aj b/tests/bugs152/pr145963/Deow.aj new file mode 100644 index 000000000..bde434340 --- /dev/null +++ b/tests/bugs152/pr145963/Deow.aj @@ -0,0 +1,7 @@ +package pkg; + +public aspect Deow { + + declare warning : (get(* System.out) || get(* System.err)) : "There should be no printlns"; + +} diff --git a/tests/bugs152/pr145963/Itd.aj b/tests/bugs152/pr145963/Itd.aj new file mode 100644 index 000000000..f53963c3b --- /dev/null +++ b/tests/bugs152/pr145963/Itd.aj @@ -0,0 +1,7 @@ +package pkg; + +public aspect Itd { + + declare parents : Point extends NewClass; + +} diff --git a/tests/bugs152/pr145963/NewClass.java b/tests/bugs152/pr145963/NewClass.java new file mode 100644 index 000000000..187e321c6 --- /dev/null +++ b/tests/bugs152/pr145963/NewClass.java @@ -0,0 +1,5 @@ +package pkg; + +public class NewClass { + +} diff --git a/tests/bugs152/pr145963/adviceAndDeow.jar b/tests/bugs152/pr145963/adviceAndDeow.jar Binary files differnew file mode 100644 index 000000000..d9ab8c793 --- /dev/null +++ b/tests/bugs152/pr145963/adviceAndDeow.jar |