+++ /dev/null
-package pkg;
-
-public aspect A {
-
- before() : execution(* pack.C.method1()) && this(pack.C) {
- System.err.println("before exec method1 and this is C");
- }
-
- before() : call(* pack.C.method2()) && target(pack.C) {
- System.err.println("before call to method2 and target is C");
- }
-}
+++ /dev/null
-package pack;
-
-public class C {
-
- public C() {
- }
-
- public void method1() {
- new C().method2();
- }
-
- public void method2() {
- }
-
- public static void main(String[] args) {
- new C().method1();
- }
-
-}
--- /dev/null
+package pkg;
+
+public aspect A {
+
+ before() : execution(* pack.C.method1()) && this(pack.C) {
+ System.err.println("before exec method1 and this is C");
+ }
+
+ before() : call(* pack.C.method2()) && target(pack.C) {
+ System.err.println("before call to method2 and target is C");
+ }
+}
--- /dev/null
+package pack;
+
+public class C {
+
+ public C() {
+ }
+
+ public void method1() {
+ new C().method2();
+ }
+
+ public void method2() {
+ }
+
+ public static void main(String[] args) {
+ new C().method1();
+ }
+
+}
// public void testBrokenIfArgsCflowAtAj_pr145018() { runTest("ataj crashing with cflow, if and args");}
// public void testItdCallingGenericMethod_pr145391() { runTest("itd calling generic method");}
// public void testItdCallingGenericMethod_pr145391_2() { runTest("itd calling generic method - 2");}
-// public void testAdviceNotWovenAspectPath_pr147841() { runTest("advice not woven on aspectpath");}
// public void testClassCastForInvalidAnnotationValue_pr148537() { runTest("classcast annotation value");}
</stderr>
</run>
</ajc-test>
-
- <ajc-test dir="bugs152/pr147841" title="advice not woven on aspectpath">
- <compile files="A.java" options="-Xlint:ignore" outjar="apath.jar"/>
- <!--compile files="C.java" outjar="cpa.jar" classpath="cpath.jar"/-->
- <compile files="C.java" options="-showWeaveInfo" aspectpath="apath.jar">
- <message kind="weave" text="foo"/>
- </compile>
- <run class="C">
- <stderr>
- <line text="foo"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
- <ajc-test dir="bugs152/pr145391" title="itd calling generic method">
+
+ <ajc-test dir="bugs152/pr145391" title="itd calling generic method">
<compile files="GenericType.java" options="-1.5"/>
<run class="GenericType"/>
</ajc-test>