mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
22 lines
447 B
Java
22 lines
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 { }
|
|
}
|