diff options
author | aclement <aclement> | 2009-02-19 21:13:47 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-02-19 21:13:47 +0000 |
commit | 57dbf696735070a818bf33bf5b7e8e51a5f0ba5c (patch) | |
tree | 0af9bb3000a3a27ba87751e610851ac2c61c861f | |
parent | 513a526e3bcdfdf73b2a317e22d5cedfbd156d56 (diff) | |
download | aspectj-57dbf696735070a818bf33bf5b7e8e51a5f0ba5c.tar.gz aspectj-57dbf696735070a818bf33bf5b7e8e51a5f0ba5c.zip |
148508, 265418: tests and fixes: array and varargs subtype patterns
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java | 10 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc164/ajc164.xml | 23 |
2 files changed, 31 insertions, 2 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java index a8f7b32c7..2351c665f 100644 --- a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java @@ -32,10 +32,18 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testParserProblemSubArrayPatterns_pr148508() { + runTest("parser problem for array subtypes"); + } + + public void testVarargs_pr265418() { + runTest("varargs"); + } + public void testIncorrectDateResolution_pr265360() { runTest("incorrect resolution of Date"); } - + public void testDualPreClinit_pr233032() { runTest("dual preClinit"); } diff --git a/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml b/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml index 68e2125b7..9dbe25479 100644 --- a/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml +++ b/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml @@ -2,13 +2,34 @@ <suite> + <ajc-test dir="bugs164/pr265418" title="varargs"> + <compile files="A.java" options="-1.5"/> + <run class="A"> + <stdout> + <line text="varargs call(void A.a(Object[]))"/> + <line text="varargs call(void A.b(String[]))"/> + <line text="varargs call(void A.c(Integer[]))"/> + <line text="arrays call(void A.d(Object[]))"/> + <line text="arrays call(void A.e(String[]))"/> + <line text="arrays call(void A.f(Integer[]))"/> + </stdout> + </run> + </ajc-test> + + <ajc-test dir="bugs164" title="parser problem for array subtypes"> + <compile files="PR148508.java"/> + <run class="PR148508"> + </run> + </ajc-test> + + <ajc-test dir="bugs164/pr265360" title="incorrect resolution of Date"> <compile files="Foo.java Main.java" options="-1.5"> <message kind="warning" text="no match for this type name: Date "/> <message kind="warning" test="advice defined in"/> </compile> </ajc-test> - + <ajc-test dir="bugs164/pr233032" title="dual preClinit"> <compile files="A.java" options="-1.5"/> <run class="A"/> |