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.

Driver.java 327B

12345678910111213141516171819
  1. import org.aspectj.testing.Tester;
  2. public class Driver {
  3. public static void main(String[] args) { test(); }
  4. public static void test() {
  5. C c = new C();
  6. Tester.check(c == c.foo(), "this wasn't this");
  7. }
  8. }
  9. class C { }
  10. aspect A {
  11. //introduction C {
  12. C C.foo() { return this; }
  13. //}
  14. }