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.

Code.java 506B

1234567891011121314151617181920212223242526
  1. public class Code {
  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. boolean b = object$rac.instancesInvariant();
  20. }
  21. }