aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoraclement <aclement>2005-12-02 11:06:37 +0000
committeraclement <aclement>2005-12-02 11:06:37 +0000
commit6d94d09c4bba8431d810019fe09e989fd026c3d1 (patch)
tree7596c86eabdc7fcbfdb328863a8a4d18ffeabb28 /tests/bugs150
parent99a8e7648584be91f418fb26714d25f402bfaff9 (diff)
downloadaspectj-6d94d09c4bba8431d810019fe09e989fd026c3d1.tar.gz
aspectj-6d94d09c4bba8431d810019fe09e989fd026c3d1.zip
test and fix for 118698
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr118698.aj23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs150/pr118698.aj b/tests/bugs150/pr118698.aj
new file mode 100644
index 000000000..198f8da2c
--- /dev/null
+++ b/tests/bugs150/pr118698.aj
@@ -0,0 +1,23 @@
+public aspect pr118698 {
+ private static interface Marker {}
+
+ private class Foo implements Marker {
+ public Foo() {
+ bar = null; // allowed
+ listener = null; // should also be allowed
+ this.listener = null; // so should this
+ ((Marker)this).listener = null; // and this
+ }
+ }
+
+ public static void main(String []argv) {
+ pr118698.aspectOf().x();
+ }
+
+ public void x() {
+ new Foo();
+ }
+
+ private Object Marker.listener;
+ private Object bar;
+}