選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }