diff options
author | acolyer <acolyer> | 2005-09-09 14:19:19 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-09 14:19:19 +0000 |
commit | 2942ca0f23ee0489efce58272768529e6b907a63 (patch) | |
tree | 8c71702707ed2548de5e4e228d5fb9b3e96a9a44 /tests/bugs150/pr106874.aj | |
parent | dc4ba2950b8ad87956d93eba5110d7a18288021c (diff) | |
download | aspectj-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.aj | 24 |
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 |