summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-20 12:11:37 +0000
committeracolyer <acolyer>2005-08-20 12:11:37 +0000
commitb0622ad2495f6bd3744751c9e52375f4b5601114 (patch)
tree9ce5107a6bd36a774fcb7ac52f1c45d919554952 /tests/src
parentf624c3fcc076d2ec21a011aed01e0e24cb79df6a (diff)
downloadaspectj-b0622ad2495f6bd3744751c9e52375f4b5601114.tar.gz
aspectj-b0622ad2495f6bd3744751c9e52375f4b5601114.zip
tests for pr78314 and pr80571
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java8
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml23
2 files changed, 30 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 5827bc445..e4dcf188d 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -250,6 +250,14 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("declare warning : foo(str) : ...;");
}
+ public void testAroundAdviceAndInterfaceInitializer() {
+ runTest("around advice on interface initializer");
+ }
+
+ public void testGoodErrorMessageOnUnmatchedMemberSyntax() {
+ runTest("good error message for unmatched member syntax");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 9551abe56..362b41c9a 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -270,7 +270,28 @@
<ajc-test dir="bugs150" title="(@Foo *)+ type pattern parse error">
<compile files="AnnotationPlusPatternParseError.aj" options="-1.5"/>
</ajc-test>
-
+
+ <ajc-test dir="bugs150" pr="80571" title="around advice on interface initializer">
+ <compile files="pr80571.aj"/>
+ <run class="pr80571">
+ <stdout>
+ <line text="before"/>
+ <line text="after"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs150" pr="78314" title="good error message for unmatched member syntax">
+ <compile files="pr78314.aj" options="-1.5">
+ <message kind="error" line="5" text="Syntax error, insert &quot;body&quot;"/>
+ <message kind="error" line="5" text="Syntax error on tokens, valid member declaration expected instead"/>
+ </compile>
+ <compile files="pr78314.aj">
+ <message kind="error" line="5" text="Syntax error, insert &quot;body&quot;"/>
+ <message kind="error" line="5" text="Syntax error on tokens, valid member declaration expected instead"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="../docs/dist/doc/examples/introduction" title="introduction sample" vm="1.5">
<compile files="CloneablePoint.java,ComparablePoint.java,HashablePoint.java,Point.java" options="-1.5"/>
</ajc-test>