réplica de
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-27 05:54:38 +02:00
22 líneas
447 B
Java
22 líneas
447 B
Java
|
|
import org.aspectj.testing.Tester;
|
|
|
|
// PR#129
|
|
|
|
public aspect IntroductionFailsWithInnerClass {
|
|
public static void main(String[] args) { test(); }
|
|
public static void test() {
|
|
Tester.checkEqual(new M().s, "m", "introduction");
|
|
}
|
|
//introduction M {
|
|
public String M.s;
|
|
//}
|
|
/*static*/ after(M m): target(m) && execution(new (..)) {
|
|
m.s = "m";
|
|
}
|
|
}
|
|
|
|
class M {
|
|
class LabeledPairLayout extends Object { }
|
|
}
|