public aspect A { | |||||
public enum TestType {Pre}; | |||||
} | |||||
public aspect A2 { | |||||
public static class C { | |||||
public enum TestType {Pre}; | |||||
} | |||||
} |
public class Bar { | |||||
public static void main(String[] args) { | |||||
A2.C.TestType pre = A2.C.TestType.Pre; | |||||
} | |||||
} |
public class C { | |||||
static aspect A { | |||||
public enum TestType {Pre}; | |||||
} | |||||
} |
public class Foo { | |||||
public static void main(String[] args) { | |||||
A.TestType pre = A.TestType.Pre; | |||||
} | |||||
} |
public class Goo { | |||||
public static void main(String[] args) { | |||||
C.A.TestType pre = C.A.TestType.Pre; | |||||
} | |||||
} |
to regenerate jarForFoo.jar: ajc A.aj -outjar required.jar -1.5 -noExit | |||||
to regenerate jarForBar.jar: ajc A2.aj -outjar jarForBar.jar -1.5 -noExit | |||||
to regenerate jarForGoo.jar: ajc C.java -outjar jarForGoo.jar -1.5 -noExit |