Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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