diff options
author | aclement <aclement> | 2008-06-10 18:52:11 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-10 18:52:11 +0000 |
commit | 58961143f7f8e28243a9ae58cd89b25ee14b318d (patch) | |
tree | 2ad81575a2b65d6f8a4af76520cc30c9146ad845 /tests/bugs161 | |
parent | 5c042e543e1c66a8fe023dcd29f2cb30486d033f (diff) | |
download | aspectj-58961143f7f8e28243a9ae58cd89b25ee14b318d.tar.gz aspectj-58961143f7f8e28243a9ae58cd89b25ee14b318d.zip |
tests for 159268, 235505, 64222 (all parser related)
Diffstat (limited to 'tests/bugs161')
-rw-r--r-- | tests/bugs161/pr159268/C.java | 8 | ||||
-rw-r--r-- | tests/bugs161/pr235505/A.java | 2 | ||||
-rw-r--r-- | tests/bugs161/pr235505/B.java | 16 | ||||
-rw-r--r-- | tests/bugs161/pr64222/C.java | 9 |
4 files changed, 35 insertions, 0 deletions
diff --git a/tests/bugs161/pr159268/C.java b/tests/bugs161/pr159268/C.java new file mode 100644 index 000000000..c2c4d3f9b --- /dev/null +++ b/tests/bugs161/pr159268/C.java @@ -0,0 +1,8 @@ +public class C { + + public static void main(String []argv) { + Object[] before; + before = new Object[10]; + before[0].toString(); // Eclipse: Syntax error on token "before", invalid + } +} diff --git a/tests/bugs161/pr235505/A.java b/tests/bugs161/pr235505/A.java new file mode 100644 index 000000000..154cc56e3 --- /dev/null +++ b/tests/bugs161/pr235505/A.java @@ -0,0 +1,2 @@ +public privileged abstract aspect A<T> { +} diff --git a/tests/bugs161/pr235505/B.java b/tests/bugs161/pr235505/B.java new file mode 100644 index 000000000..f06802c13 --- /dev/null +++ b/tests/bugs161/pr235505/B.java @@ -0,0 +1,16 @@ +privileged abstract aspect A<T> { + public void foo(T t) { System.out.println(t); } + before(T t): execution(* *(..)) && args(t) && !within(A+) { foo(t); } +} + +aspect X extends A<String> {} + +public class B { + public static void main(String []argv) { + new B().run("Hello World"); + } + + public void run(String s) { + System.out.println(s); + } +} diff --git a/tests/bugs161/pr64222/C.java b/tests/bugs161/pr64222/C.java new file mode 100644 index 000000000..f7c3c4024 --- /dev/null +++ b/tests/bugs161/pr64222/C.java @@ -0,0 +1,9 @@ +class C { + int dummy() {return 5;} +} + +aspect Foo { + around(): call(int C.dummy()) { + proceed(); + } +} |