summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2008-10-24 03:52:15 +0000
committeraclement <aclement>2008-10-24 03:52:15 +0000
commit621e6e54fa172775cc1f4cb28ba5b072e52fd39a (patch)
treeea1887a3534f1666f3db6209a14db48fcdeeee1f /tests
parentda34cb025547154ce0e384944f2576e032a62bac (diff)
downloadaspectj-621e6e54fa172775cc1f4cb28ba5b072e52fd39a.tar.gz
aspectj-621e6e54fa172775cc1f4cb28ba5b072e52fd39a.zip
226163: 251940: tests
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs163/pr226163/Code.java9
-rw-r--r--tests/bugs163/pr251940/F.aj3
-rw-r--r--tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java8
-rw-r--r--tests/src/org/aspectj/systemtest/ajc163/ajc163.xml9
4 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs163/pr226163/Code.java b/tests/bugs163/pr226163/Code.java
new file mode 100644
index 000000000..b66b7868d
--- /dev/null
+++ b/tests/bugs163/pr226163/Code.java
@@ -0,0 +1,9 @@
+public class Code {
+ public void test(){
+ System.out.print(false);
+ if (){
+
+ }
+ }
+}
+
diff --git a/tests/bugs163/pr251940/F.aj b/tests/bugs163/pr251940/F.aj
new file mode 100644
index 000000000..fb1645bc2
--- /dev/null
+++ b/tests/bugs163/pr251940/F.aj
@@ -0,0 +1,3 @@
+public aspect F implements Comparable pertarget(within(F)) {
+
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
index 2a3679330..477022551 100644
--- a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
@@ -18,6 +18,14 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ // public void testImplementsPertarget_pr251940() {
+ // runTest("implements pertarget");
+ // }
+
+ public void testBreakingRecovery_pr226163() {
+ runTest("breaking recovery");
+ }
+
public void testGenericMethodConversions_pr250632() {
runTest("type conversion in generic itd");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
index c44f85a6f..01aa94b97 100644
--- a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
+++ b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
@@ -2,6 +2,15 @@
<suite>
+ <ajc-test dir="bugs163/pr251940" title="implements pertarget">
+ <compile files="F.aj" options="-1.5"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs163/pr226163" title="breaking recovery">
+ <compile files="Code.java" options="-1.5">
+ <message kind="error" line="4" text="Syntax error"/>
+ </compile>
+ </ajc-test>
<ajc-test dir="bugs163/pr250632" title="type conversion in generic itd">
<compile files="MyAspect.java" options="-1.5"/>