aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-11 20:13:03 +0000
committeracolyer <acolyer>2005-09-11 20:13:03 +0000
commit64d74013c685a815cbe3565f71747103177daf20 (patch)
tree8416fbd576145a9e86dd3ea9f4f6b502ca38a917 /tests/bugs150
parent2942ca0f23ee0489efce58272768529e6b907a63 (diff)
downloadaspectj-64d74013c685a815cbe3565f71747103177daf20.tar.gz
aspectj-64d74013c685a815cbe3565f71747103177daf20.zip
added test for pr105181
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr105181.aj24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs150/pr105181.aj b/tests/bugs150/pr105181.aj
new file mode 100644
index 000000000..6ac65726b
--- /dev/null
+++ b/tests/bugs150/pr105181.aj
@@ -0,0 +1,24 @@
+class Foo {}
+aspect Injector {
+ Foo Foo.field;
+ public Foo Foo.foo() { System.out.println("hello"); return field; }
+}
+
+public class pr105181 {
+ static void sink(Foo foo) {}
+ public static void main(String[] args) throws Exception {
+ java.util.Vector<Foo> source = new java.util.Vector<Foo>();
+ source.add(new Foo());
+
+ /**
+ * This next line causes a verify error when we try to access the ITD'd field
+ */
+ Foo f = source.get(0).field;
+
+ /**
+ * According to the bug report, this line should to - but I couldn't get a
+ * method to fail...
+ */
+ Foo f2 = source.get(0).foo();
+ }
+} \ No newline at end of file