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.

IntroductionFailsWithInnerClass.java 447B

123456789101112131415161718192021
  1. import org.aspectj.testing.Tester;
  2. // PR#129
  3. public aspect IntroductionFailsWithInnerClass {
  4. public static void main(String[] args) { test(); }
  5. public static void test() {
  6. Tester.checkEqual(new M().s, "m", "introduction");
  7. }
  8. //introduction M {
  9. public String M.s;
  10. //}
  11. /*static*/ after(M m): target(m) && execution(new (..)) {
  12. m.s = "m";
  13. }
  14. }
  15. class M {
  16. class LabeledPairLayout extends Object { }
  17. }