summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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"/>