diff options
author | aclement <aclement> | 2005-11-04 10:47:47 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-04 10:47:47 +0000 |
commit | a7e13f10303623cbab5f84e8d9cecd882308b52a (patch) | |
tree | 5d8683f94c2d3669908540de2d0757ff4b5b449e /tests/src | |
parent | bf51fe3e3fded74ae0ba424fdcf8f07394e665b5 (diff) | |
download | aspectj-a7e13f10303623cbab5f84e8d9cecd882308b52a.tar.gz aspectj-a7e13f10303623cbab5f84e8d9cecd882308b52a.zip |
testcode and fix for pr112476: binary weaving decp
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 20 |
2 files changed, 18 insertions, 3 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 8d8f2a837..26c4d16fc 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -51,6 +51,7 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testITDCtor_pr112783() { runTest("Problem with constructor ITDs");} */ + public void testBrokenDecp_pr112476() { runTest("binary weaving decp broken");} public void testUnboundFormal_pr112027() { runTest("unexpected error unboundFormalInPC");} public void testNPEScopeSetup_pr115038() { runTest("NPE in ensureScopeSetup");} public void testCCEGenerics_pr113445() { runTest("Generics ClassCastException");} diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index b6b5e6bf8..63481ee2f 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -3,6 +3,20 @@ <!-- AspectJ v1.5.0 Tests --> <suite> + <ajc-test dir="bugs150/pr112476/case1" title="binary weaving decp broken"> + <compile files="lib/A.java,lib/B.java,lib/C.java" outjar="library.jar" options="-1.5"/> + <!-- library.jar on the aspectpath here just for resolution when compiling SuperC --> + <compile aspectpath="library.jar" files="weaved/SuperC.java" outjar="newsuper.jar" options="-1.5"/> + <compile inpath="library.jar;newsuper.jar" files="weaved/DeclareAspect.aj" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Setting superclass of type 'lib.C' (C.java) to 'weaved.SuperC' (DeclareAspect.aj)"/> + </compile> + <run class="weaved.SuperC"> + <stdout> + <line text="Is [class lib.C] subcass of [class weaved.SuperC]? true"/> + </stdout> + </run> + </ajc-test> + <ajc-test dir="java5/staticImports" title="import static java.lang.System.out"> <compile files="StaticImport.aj" options="-1.5"/> </ajc-test> @@ -10,7 +24,7 @@ <ajc-test dir="bugs150" title="Problem with constructor ITDs"> <compile files="pr112783.aj" options="-1.5"/> </ajc-test> - + <ajc-test dir="bugs150" title="NPE in ensureScopeSetup"> <compile files="pr115038.aj" options="-1.5"> <!-- fixme asc the 'static ref' messages are a bit poor and ought to be eliminated... --> @@ -20,12 +34,12 @@ </compile> </ajc-test> - <ajc-test dir="bugs150" title="ITDC with no explicit cons call"> + <ajc-test dir="bugs150" title="ITDC with no explicit cons call"> <compile files="Pr62606.aj" options="-1.5"> <message kind="warning" line="6" text="[Xlint:noExplicitConstructorCall]"/> </compile> </ajc-test> - + <ajc-test dir="java5/generics/bugs" title="using same type variable in ITD"> <compile files="SameTypeVariable.aj" options="-1.5"> </compile> |