diff options
author | acolyer <acolyer> | 2006-02-10 17:59:13 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2006-02-10 17:59:13 +0000 |
commit | d07f63a30c5af1a380f5091f18c21003aebfae79 (patch) | |
tree | 242d91aba88739a7714cb310fb8cbac951044713 /tests/src/org/aspectj/systemtest/ajc151 | |
parent | 88d5a94de9f8e2a312ea1d4b77742a472efe4c2e (diff) | |
download | aspectj-d07f63a30c5af1a380f5091f18c21003aebfae79.tar.gz aspectj-d07f63a30c5af1a380f5091f18c21003aebfae79.zip |
Progress on: empty catch block warning - updates to test cases with empty catch blocks
Diffstat (limited to 'tests/src/org/aspectj/systemtest/ajc151')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | 7 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc151/ajc151.xml | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java index 7e209d0b5..4407a8106 100644 --- a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java @@ -77,6 +77,13 @@ public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("E extends Enum(E) again"); } + public void testSwallowedException() { + runTest("swallowed exceptions"); + } + + public void testSwallowedExceptionIgnored() { + runTest("swallowed exceptions with xlint"); + } /* * @AspectJ bugs and enhancements */ diff --git a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml index e3b67929a..10102fc77 100644 --- a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml +++ b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml @@ -168,5 +168,15 @@ </stderr> </run> </ajc-test> + + <ajc-test dir="features151/swallowedExceptions" title="swallowed exceptions"> + <compile files="SwallowedException.java"> + <message kind="warning" line="11" text="Exception swallowed in catch block"/> + </compile> + </ajc-test> + <ajc-test dir="features151/swallowedExceptions" title="swallowed exceptions with xlint"> + <compile files="SwallowedException.java" options="-Xlint:ignore"> + </compile> + </ajc-test> </suite>
\ No newline at end of file |