mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-17 14:10:58 +02:00
21 lines
489 B
Java
21 lines
489 B
Java
aspect Aspect1 {
|
|
public static Construction4._ Construction4._() { return new _("abc"); }
|
|
public static String Construction4.foo() { return "abc"; }
|
|
}
|
|
aspect Aspect2 {
|
|
public static class Construction4._ {
|
|
String string;
|
|
public _(String string) { this.string = string;}
|
|
public String toString() {
|
|
return string;
|
|
}
|
|
}
|
|
}
|
|
public class Construction4 {
|
|
public static void main(String []argv) {
|
|
Object o = _();
|
|
o = foo();
|
|
System.out.println(o);
|
|
}
|
|
}
|