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.

123456789101112131415161718192021
  1. import java.lang.annotation.*;
  2. public class OnePrivateAccessors {
  3. public static void main(String[] argv) {
  4. int i = new OnePrivateAccessors().run();
  5. if (i!=37) throw new RuntimeException(Integer.toString(i));
  6. }
  7. }
  8. aspect X {
  9. @Anno
  10. private int OnePrivateAccessors.x;
  11. public int OnePrivateAccessors.run() {
  12. x = 37;
  13. return x;
  14. }
  15. }
  16. @Retention(RetentionPolicy.RUNTIME)
  17. @interface Anno {}