summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr106874.aj
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-09 14:19:19 +0000
committeracolyer <acolyer>2005-09-09 14:19:19 +0000
commit2942ca0f23ee0489efce58272768529e6b907a63 (patch)
tree8c71702707ed2548de5e4e228d5fb9b3e96a9a44 /tests/bugs150/pr106874.aj
parentdc4ba2950b8ad87956d93eba5110d7a18288021c (diff)
downloadaspectj-2942ca0f23ee0489efce58272768529e6b907a63.tar.gz
aspectj-2942ca0f23ee0489efce58272768529e6b907a63.zip
tests and fix for pr108826, not correctly converting from T[] to ResolvedType.
Diffstat (limited to 'tests/bugs150/pr106874.aj')
-rw-r--r--tests/bugs150/pr106874.aj24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs150/pr106874.aj b/tests/bugs150/pr106874.aj
new file mode 100644
index 000000000..94bcb156f
--- /dev/null
+++ b/tests/bugs150/pr106874.aj
@@ -0,0 +1,24 @@
+public class pr106874 {
+ class Inner { // works if static
+ private Integer field;
+ void bug() {
+ field = new Integer(0);
+ }
+ }
+
+ public static void main(String[] args) {
+ new pr106874().new Inner().bug();
+ }
+}
+
+aspect Aspect {
+ before(Object t) :
+ // target(Object) && // works
+ // this(t) && // works
+ target(t) && // fails
+ // set(* Bug.Inner.field) // works
+ // set(Integer Bug.Inner.*) // works
+ // get(* Bug.Inner.*) // works
+ set(* pr106874.Inner.*) // fails
+ {}
+} \ No newline at end of file