From: aclement Date: Thu, 21 Aug 2008 18:00:21 +0000 (+0000) Subject: 210114: test and fix: errors for compiler limitations become warnings X-Git-Tag: V162DEV_M1~98 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d456da9c254dc59a60b4250cae05da376d808d9f;p=aspectj.git 210114: test and fix: errors for compiler limitations become warnings --- diff --git a/tests/bugs162/pr210114/TestAspect.java b/tests/bugs162/pr210114/TestAspect.java new file mode 100644 index 000000000..f641673d6 --- /dev/null +++ b/tests/bugs162/pr210114/TestAspect.java @@ -0,0 +1,20 @@ +package test; + +public aspect TestAspect { + Object around() : within(TestClass) { + return proceed(); + } + + after() : within(TestClass) { + } +} + +class TestClass { + public void test() { + try { + new String(); + } catch (Exception ex) { + } + } +} + diff --git a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java index 2862c298f..08dba1573 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java @@ -19,6 +19,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectJ1.6.2 + public void testWarningsForLimitations_pr210114() { runTest("warnings for limitations"); } public void testPTW_pr244830() { runTest("ptw initFailureCause"); } public void testGenericItdsOverrides_pr222648() { runTest("generic itds - overrides"); } public void testGenericItdsOverrides_pr222648_2() { runTest("generic itds - overrides - 2"); } diff --git a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml index bdea360d1..ccbe977f0 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml +++ b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml @@ -3,6 +3,14 @@ + + + + + + + +