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.

Code2.java 635B

12345678910111213141516171819202122232425262728293031
  1. public class Code2 {
  2. public static void main(String []argv) {
  3. new Bar().foo();
  4. }
  5. }
  6. interface Common { }
  7. interface Allergies extends Common {
  8. default public void foo() {
  9. }
  10. }
  11. class Bar implements Allergies { }
  12. aspect Y {
  13. private boolean Common.instancesInvariant() {
  14. return false;
  15. }
  16. }
  17. privileged aspect AspectJMLRac_allergies_Allergies {
  18. before(final Allergies object$rac): execution(* Allergies+.*(..)) && this(object$rac) {
  19. Runnable r = new Runnable() {
  20. public void run() {
  21. boolean b = object$rac.instancesInvariant();
  22. }
  23. };
  24. boolean b = object$rac.instancesInvariant();
  25. }
  26. }