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.

A2.java 281B

1234567891011121314151617181920
  1. package p2;
  2. import p1.C;
  3. public class A2 {
  4. public static void main(String[] args) {
  5. new C().foo();
  6. new C().bar();
  7. }
  8. }
  9. aspect InterClass {
  10. void C.foo() {
  11. assert(C.class != null);
  12. }
  13. void around(): execution(void C.bar()) {
  14. assert(C.class != null);
  15. proceed();
  16. }
  17. }