summaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2016-12-09 09:04:56 -0800
committerAndy Clement <aclement@pivotal.io>2016-12-09 09:04:56 -0800
commit90aa179e2c0b2870d8678f8e9948bf631840c93b (patch)
tree764b680f72a92865d58c604e62cce37a57920378 /tests/src/org/aspectj
parent2365f957eea267377b703d6c35e678d55a87ae2d (diff)
downloadaspectj-90aa179e2c0b2870d8678f8e9948bf631840c93b.tar.gz
aspectj-90aa179e2c0b2870d8678f8e9948bf631840c93b.zip
508661: testcode
Diffstat (limited to 'tests/src/org/aspectj')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc1810/Ajc1810Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc1810/ajc1810.xml14
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc1810/Ajc1810Tests.java b/tests/src/org/aspectj/systemtest/ajc1810/Ajc1810Tests.java
index 3cae1378c..37896b42f 100644
--- a/tests/src/org/aspectj/systemtest/ajc1810/Ajc1810Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc1810/Ajc1810Tests.java
@@ -24,6 +24,10 @@ import junit.framework.Test;
*/
public class Ajc1810Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testBinding_508661() {
+ runTest("various ltw");
+ }
+
public void testBinding_500035() {
runTest("ataspectj binding");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc1810/ajc1810.xml b/tests/src/org/aspectj/systemtest/ajc1810/ajc1810.xml
index 7485c1c20..0171f5b55 100644
--- a/tests/src/org/aspectj/systemtest/ajc1810/ajc1810.xml
+++ b/tests/src/org/aspectj/systemtest/ajc1810/ajc1810.xml
@@ -2,6 +2,20 @@
<suite>
+ <ajc-test dir="bugs1810/508661" title="various ltw">
+ <compile options="-1.8" files="CacheMethodResult.java A_yes.java B_no.java Run.java" outjar="classes.jar"/>
+ <compile options="-1.8 -Xlint:ignore" files="CacheMethodResultAspect.java" outjar="aspects.jar"/>
+ <run class="Run" ltw="aop.xml">
+ <stdout>
+ <line text="around: void A_yes.m()"/>
+ <line text="A_yes.m()"/>
+ <line text="A_yes has interface? CacheMethodResultAspect$ajcMightHaveAspect"/>
+ <line text="B_no.m()"/>
+ <line text="B_no has interface? no"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
<ajc-test dir="bugs1810/500035" title="ataspectj binding">
<compile options="-1.8" files="Code.java"/>
<run class="Code">