summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-19 14:47:59 +0000
committeracolyer <acolyer>2005-08-19 14:47:59 +0000
commit2b23e912c5e57b0731b25c3a26ec365b20468b0f (patch)
tree8614dfafda39385ad31cfad17473f76a8c73db41 /tests/src
parent169a48870ac2680169e0632ee8d79b372949be10 (diff)
downloadaspectj-2b23e912c5e57b0731b25c3a26ec365b20468b0f.tar.gz
aspectj-2b23e912c5e57b0731b25c3a26ec365b20468b0f.zip
tests for pr78261, field patterns with a void field type
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml8
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index bc3663e40..213213497 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -234,6 +234,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("before returning advice not allowed!");
}
+ public void testDetectVoidFieldType() {
+ runTest("void field type in pointcut expression");
+ }
+
// 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 390615def..a8a2967c6 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -71,7 +71,13 @@
<compile files="pr91114.aj">
</compile>
</ajc-test>
-
+
+ <ajc-test dir="bugs150" pr="78621" title="void field type in pointcut expression">
+ <compile files="pr78261.aj">
+ <message line="3" kind="error" text="fields cannot have a void type"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="78707" title="before returning advice not allowed!">
<compile files="pr78707.aj">
<message line="3" kind="error" text="Syntax error on token &quot;returning&quot;, delete this token"/>