diff options
author | aclement <aclement> | 2005-12-02 11:06:37 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-12-02 11:06:37 +0000 |
commit | 6d94d09c4bba8431d810019fe09e989fd026c3d1 (patch) | |
tree | 7596c86eabdc7fcbfdb328863a8a4d18ffeabb28 /tests/bugs150 | |
parent | 99a8e7648584be91f418fb26714d25f402bfaff9 (diff) | |
download | aspectj-6d94d09c4bba8431d810019fe09e989fd026c3d1.tar.gz aspectj-6d94d09c4bba8431d810019fe09e989fd026c3d1.zip |
test and fix for 118698
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/pr118698.aj | 23 |
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; +} |