summaryrefslogtreecommitdiffstats
path: root/tests/src/org
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2012-04-09 14:15:55 -0700
committerAndy Clement <andrew.clement@gmail.com>2012-04-09 14:15:55 -0700
commitbe063b851651ebcfe1e147198842e28ea7dbbb26 (patch)
treee2eb84285f225710e351b2f7f95d3629f079e4a0 /tests/src/org
parent6e1704d3e20367a0b3327a7544417d5a3291ac27 (diff)
downloadaspectj-be063b851651ebcfe1e147198842e28ea7dbbb26.tar.gz
aspectj-be063b851651ebcfe1e147198842e28ea7dbbb26.zip
376351
Diffstat (limited to 'tests/src/org')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc170/ajc170.xml18
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
index 643340944..b51ce51f3 100644
--- a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
@@ -31,6 +31,10 @@ import org.aspectj.weaver.tools.StandardPointcutParser;
*/
public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testAttributeErrorJ7() {
+ runTest("attribute issue with J7");
+ }
+
public void testSwitchOnEnum() {
runTest("switch on enum");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
index 5bf94415c..a9069d531 100644
--- a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
+++ b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
@@ -2,6 +2,24 @@
<suite>
+ <ajc-test dir="bugs170/pr376351" title="attribute issue with J7">
+ <compile files="R.java R1.java" outjar="code.jar" options="-1.5"/>
+ <compile files="RAj.java" options="-1.7 -Xlint:ignore" outjar="aspects.jar" classpath="code.jar"/>
+ <compile inpath="code.jar" aspectpath="aspects.jar" options="-showWeaveInfo">
+ <message kind="weave" text="Join point 'constructor-call(void R.&lt;init&gt;())'"/>
+ </compile>
+ <!--
+ if we had a 1.7 vm we could use this:
+ <compile files="RAj.java" options="-1.7 -Xlint:ignore"/>
+ <run class="R" ltw="aop.xml">
+ <stderr>
+ <line text="org.aspectj.weaver.tools.Jdk14Trace error"/>
+ <line text="Unsupported major.minor version 51.0"/>
+ <line text="java.lang.UnsupportedClassVersionError: RAj :"/>
+ </stderr>
+ </run>
+ -->
+ </ajc-test>
<ajc-test dir="bugs170/pr376139" title="switch on enum">
<compile files="Code.java" options="-1.5"/>