public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testUnusedPrivateWarning_pr266420() {
+ runTest("unused private warning");
+ }
+
+ public void testUnusedPrivateWarning_pr266420_2() {
+ runTest("unused private warning - 2");
+ }
+
+ public void testUnusedPrivateWarning_pr266420_3() {
+ runTest("unused private warning - 3");
+ }
+
/**
- * This test program can be used to compare handles for faulted in binary
- * aspects with handles that would be used if the aspect was available as
- * source. There are two compile steps in the xml for the test - commenting
- * out the first will allow the source handles to be seen, leaving it in
- * will switch to binary. Effectively the only difference should be that in
- * the binary case the handles are prefixed 'binaries'.
+ * This test program can be used to compare handles for faulted in binary aspects with handles that would be used if the aspect
+ * was available as source. There are two compile steps in the xml for the test - commenting out the first will allow the source
+ * handles to be seen, leaving it in will switch to binary. Effectively the only difference should be that in the binary case
+ * the handles are prefixed 'binaries'.
*/
public void testItdsAspectPathModel_pr265729_1() {
runTest("aspectpath model");
}
/**
- * This test checks that local variable table for the interMethodDispatcher
- * is built correctly, for the related code see
- * IntertypeMethodDeclaration.generateDispatchMethod(). It checks non-static
- * and static ITDs. Once the information here is correct then around advice
- * on ITDs can also be correct.
+ * This test checks that local variable table for the interMethodDispatcher is built correctly, for the related code see
+ * IntertypeMethodDeclaration.generateDispatchMethod(). It checks non-static and static ITDs. Once the information here is
+ * correct then around advice on ITDs can also be correct.
*/
public void testBrokenLVT_pr194314_3() throws Exception {
runTest("broken lvt - 3");
<suite>
- <ajc-test dir="bugs164/pr265729" title="aspectpath model">
+ <ajc-test dir="bugs164/pr266420" title="unused private warning">
+ <compile files="A.java" options="-1.5 -warn:unusedPrivate"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs164/pr266420" title="unused private warning - 2">
+ <compile files="B.java" options="-1.5 -warn:unusedPrivate">
+ <message kind="warning" text="The field B.i is never read locally"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="bugs164/pr266420" title="unused private warning - 3">
+ <compile files="C.java" options="-1.5 -warn:unusedPrivate">
+ <message kind="warning" text="The field C.j is never read locally"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="bugs164/pr265729" title="aspectpath model">
<compile files="Aspect.java Orange.java Strawberry.java Fruit.java" outjar="library.jar" options="-emacssym"/>
<compile files="Orange.java Strawberry.java Fruit.java" aspectpath="library.jar" options="-emacssym"/>
<!--