diff options
author | wisberg <wisberg> | 2006-02-17 19:41:52 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2006-02-17 19:41:52 +0000 |
commit | 1f1ace1f842758b1235bd471d66715238a653ae2 (patch) | |
tree | dc7705648fa7b6aaf36d942cd852115271882ce1 /tests/bugs151 | |
parent | 6f35ef3f0fe976a720d8bdae254064a1f40be4c0 (diff) | |
download | aspectj-1f1ace1f842758b1235bd471d66715238a653ae2.tar.gz aspectj-1f1ace1f842758b1235bd471d66715238a653ae2.zip |
test for 123553
Diffstat (limited to 'tests/bugs151')
-rw-r--r-- | tests/bugs151/pr123553/A.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs151/pr123553/A.java b/tests/bugs151/pr123553/A.java new file mode 100644 index 000000000..fae646ba0 --- /dev/null +++ b/tests/bugs151/pr123553/A.java @@ -0,0 +1,19 @@ + +public class A { + static Object s; + public static void main(String[] args) { + String t = "Hello, World!"; + t.toString(); + if (s != t) throw new Error(); + } + static abstract aspect GenericAspect<T> { + abstract pointcut checkpoint(T t); + + // advice declaration causes error + after(T t): checkpoint(t) { s = t;} + } + static aspect AAA extends GenericAspect<String>{ + pointcut checkpoint(String s) : target(s) && + call(String String.toString()); + } +} |