aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-05 12:48:36 +0000
committeraclement <aclement>2006-07-05 12:48:36 +0000
commitd16403655828b58d1ffbdb8d9ab4457c097bd746 (patch)
tree96525ec2b0467d2fa087166d8e74111fef39e87a /tests
parent54934badeea099373c8988195fc6d359e04e4c7a (diff)
downloadaspectj-d16403655828b58d1ffbdb8d9ab4457c097bd746.tar.gz
aspectj-d16403655828b58d1ffbdb8d9ab4457c097bd746.zip
pr145693 - fix for part 1
Diffstat (limited to 'tests')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java6
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/ajc153.xml26
2 files changed, 31 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
index 8e09602c4..18b1f86e0 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
@@ -29,7 +29,10 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("verification problem"); // build the code
Utils.verifyClass(ajc,"mypackage.MyAspect"); // verify it <<< BRAND NEW VERIFY UTILITY FOR EVERYONE TO TRY ;)
}
- public void testIncorrectAnnotationValue_pr148537() { runTest("incorrect annotation value");}
+ public void testIncorrectAnnotationValue_pr148537() { runTest("incorrect annotation value");}
+ public void testVerifyErrNoTypeCflowField_pr145693_1() { runTest("verifyErrNoTypeCflowField"); }
+// public void testVerifyErrInpathNoTypeCflowField_pr145693_2() { runTest("verifyErrInpathNoTypeCflowField"); }
+// public void testCpathNoTypeCflowField_pr145693_3() { runTest("cpathNoTypeCflowField"); }
/////////////////////////////////////////
@@ -40,5 +43,6 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
protected File getSpecFile() {
return new File("../tests/src/org/aspectj/systemtest/ajc153/ajc153.xml");
}
+
} \ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
index 4bc76dd65..6024e6557 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
+++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
@@ -48,5 +48,31 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs153/pr145693" title="verifyErrNoTypeCflowField">
+ <compile files="Event.java" outjar="cpath.jar"/>
+ <compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar"/>
+ <compile files="Sample.java" options="-Xlint:ignore" aspectpath="apath.jar" outjar="run.jar">
+ <message kind="warning" line="8" text="Unable to determine match at this join point because the type 'Event' cannot be found"/>
+ </compile>
+ <run class="Sample" classpath="run.jar,apath.jar">
+ <stderr>
+ <line text="method running"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs153/pr145693" title="verifyErrInpathNoTypeCflowField">
+ <compile files="Event.java" outjar="cpath.jar"/>
+ <compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar"/>
+ <compile files="Sample.java" options="-Xlint:ignore" inpath="cpath.jar" aspectpath="apath.jar" outjar="run.jar"/>
+ <run class="Sample" classpath="run.jar,apath.jar"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs153/pr145693" title="cpathNoTypeCflowField">
+ <compile files="Event.java" outjar="cpath.jar"/>
+ <compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar"/>
+ <compile files="Sample.java" options="-Xlint:ignore" classpath="cpath.jar" aspectpath="apath.jar" outjar="run.jar"/>
+ <run class="Sample" classpath="run.jar,apath.jar"/>
+ </ajc-test>
</suite> \ No newline at end of file