<compile files="p1/C.java,p2/A2.java" options="-source14"/>
<run class="p2.A2" vm="1.4"/>
</ajc-test>
+
+ <ajc-test dir="new" pr="36736"
+ title="implemented abstract pointcut">
+ <compile files="AbstractImplementedPointcut.java">
+ <message kind="error" line="14"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="new/verifyError" pr="36673"
+ title="privileged aspect main verify error">
+ <compile files="Privilege.java"/>
+ <run class="Privilege"/>
+ </ajc-test>
</suite>
<!-- contains valid tests that the compiler has never passed -->
<suite>
- <ajc-test dir="new/verifyError" pr="36673"
- title="privileged aspect main verify error">
- <compile files="Privilege.java"/>
- <run class="Privilege"/>
- </ajc-test>
- <ajc-test dir="new" pr="36736"
- title="implemented abstract pointcut">
- <compile files="AbstractImplementedPointcut.java">
- <message kind="error" line="14"/>
- </compile>
- </ajc-test>
</suite>
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<suite>
- <ajc-test dir="bugs/interSpecials" title="IllegalAccessError while accessing introduced variable / 1.1rc1"
- pr="36110">
- <compile files="p1/C.java,p2/A1.java"/>
- <run class="p2.A1"/>
- </ajc-test>
- <ajc-test dir="bugs/interSpecials" title="testing that assert works like .class"
- pr="36110">
- <compile files="p1/C.java,p2/A2.java" options="-source14"/>
- <run class="p2.A2" vm="1.4"/>
+ <ajc-test dir="new" pr="559"
+ title="subclass advice not run for join points selected by superclass cflow-based pointcuts"
+ keywords="from-resolved_10rc3">
+ <compile files="PR559.java"/>
+ <run class="PR559"/>
</ajc-test>
<!--
privileged aspect A {
private int C.j = 1;
+ private static String C.s = "hello";
+
+ private String C.m() {
+ return "from A";
+ }
}
/** @testcase PR#36673 privileged aspect main verify error */
public privileged aspect Privilege {
public static void main(String[] args) {
C c = new C();
- Tester.check(1 == c.j, "wrong value for c.j");
+ Tester.checkEqual(1, c.j, "wrong value for c.j");
+ Tester.checkEqual("hello", C.s, "wrong value for C.s");
+ Tester.checkEqual("from A", c.m(), "c.m()");
}
}