You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr118698.aj 536B

1234567891011121314151617181920212223
  1. public aspect pr118698 {
  2. private static interface Marker {}
  3. private class Foo implements Marker {
  4. public Foo() {
  5. bar = null; // allowed
  6. listener = null; // should also be allowed
  7. this.listener = null; // so should this
  8. ((Marker)this).listener = null; // and this
  9. }
  10. }
  11. public static void main(String []argv) {
  12. pr118698.aspectOf().x();
  13. }
  14. public void x() {
  15. new Foo();
  16. }
  17. private Object Marker.listener;
  18. private Object bar;
  19. }