diff options
author | acolyer <acolyer> | 2005-09-12 14:24:55 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-12 14:24:55 +0000 |
commit | 776613eebf410baacd178bf73f3de0783f5df98f (patch) | |
tree | b136dba761398cf56941f722414a0fc93917ea0c /tests/bugs150/pr105181.aj | |
parent | 2ae4f531c7f7c3c38c983c73492ef63b224784e3 (diff) | |
download | aspectj-776613eebf410baacd178bf73f3de0783f5df98f.tar.gz aspectj-776613eebf410baacd178bf73f3de0783f5df98f.zip |
tests and fix for pr105181, implicit cast of itd field type on return from generic collection erroneously casting to aspect (declaring) type, not owning (target) type.
Diffstat (limited to 'tests/bugs150/pr105181.aj')
-rw-r--r-- | tests/bugs150/pr105181.aj | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bugs150/pr105181.aj b/tests/bugs150/pr105181.aj index 6ac65726b..4d83928b2 100644 --- a/tests/bugs150/pr105181.aj +++ b/tests/bugs150/pr105181.aj @@ -21,4 +21,14 @@ public class pr105181 { */ Foo f2 = source.get(0).foo(); } + + public void worksOK() { + java.util.Vector<Bar> source = new java.util.Vector<Bar>(); + source.add(new Bar()); + Bar b = source.get(0).field; + } +} + +class Bar { + Bar field; }
\ No newline at end of file |