diff options
author | acolyer <acolyer> | 2005-12-13 19:42:17 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-12-13 19:42:17 +0000 |
commit | dc8360ec2717f4c54d1b2aa43309ac1d2807f7fb (patch) | |
tree | f3273695fd656fc123cc01b3456de9259e24c8e3 /tests/src | |
parent | e6df15a4ab52c0448fd49335b0b6cf296cd955cf (diff) | |
download | aspectj-dc8360ec2717f4c54d1b2aa43309ac1d2807f7fb.tar.gz aspectj-dc8360ec2717f4c54d1b2aa43309ac1d2807f7fb.zip |
tests and fix for ITDS in AjTypeSystem
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 8 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 50 |
2 files changed, 58 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index ba040ceac..d5c3c2bdc 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -839,6 +839,14 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("IllegalAccessError with around advice on interface method call using LTW and -XnoInline"); } + public void testReflectOnCodeStyleITDs() { + runTest("reflection on itds"); + } + + public void testReflectOnAtAspectJDecP() { + runTest("reflection on @DeclareParents"); + } + // 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 a73365dc2..19bcb55a9 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -225,7 +225,57 @@ <compile files="PointcutLibrary.aj,ReflectOnAjcCompiledPointcuts.java" options="-1.5"></compile> <run class="ReflectOnAjcCompiledPointcuts" classpath="../lib/bcel/bcel.jar"/> </ajc-test> + + <ajc-test dir="java5/reflection" title="reflection on itds"> + <compile files="InterTypeDeclarations.aj,ReflectOnCodeStyleITDs.java" options="-1.5"></compile> + <run class="ReflectOnCodeStyleITDs" classpath="../lib/bcel/bcel.jar"> + <stdout> + <line text="public C.new(int, int, int)"/> + <line text="C.new(int, int)"/> + <line text="private C.new(int)"/> + <line text="private C.new(int)"/> + <line text="public C.new(int, int, int)"/> + <line text="public C.new(int, int, int)"/> + <line text="int C.getY()"/> + <line text="int I.getY()"/> + <line text="public int C.getZ()"/> + <line text="public int I.getZ()"/> + <line text="private int C.getX()"/> + <line text="private int I.getX()"/> + <line text="private int C.getX()"/> + <line text="public int C.getZ()"/> + <line text="public int I.getZ()"/> + <line text="public int C.getZ()"/> + <line text="int C.y"/> + <line text="int I.y"/> + <line text="public int C.z"/> + <line text="public int I.z"/> + <line text="private int C.x"/> + <line text="private int I.x"/> + <line text="private int C.x"/> + <line text="public int C.z"/> + <line text="public int I.z"/> + <line text="public int C.z"/> + </stdout> + </run> + </ajc-test> + <ajc-test dir="java5/reflection" title="reflection on @DeclareParents"> + <compile files="AtAspectJDeclareParents.aj,ReflectOnAtAspectJDeclareParents.java" options="-1.5"></compile> + <run class="ReflectOnAtAspectJDeclareParents" classpath="../lib/bcel/bcel.jar"> + <stdout> + <line text="declare parents : C implements I"/> + <line text="public int I.getX()"/> + <line text="public void I.setX(int)"/> + <line text="public int I.getX()"/> + <line text="public int I.getX()"/> + <line text="public void I.setX(int)"/> + <line text="public int I.getX()"/> + <line text="private int I.x"/> + <line text="private int I.x"/> + </stdout> + </run> + </ajc-test> <ajc-test dir="compatibility/case1" title="generating code for a 1.2.1 runtime - 1"> <compile files="Simple.java" options="-Xajruntimetarget:1.2"/> |