From: acolyer Date: Fri, 10 Feb 2006 17:58:12 +0000 (+0000) Subject: Progress on: empty catch block warning - extra lint message X-Git-Tag: POST_MEMORY_CHANGES~95 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88d5a94de9f8e2a312ea1d4b77742a472efe4c2e;p=aspectj.git Progress on: empty catch block warning - extra lint message --- diff --git a/weaver/src/org/aspectj/weaver/Lint.java b/weaver/src/org/aspectj/weaver/Lint.java index b1c4439e9..2ca50ad85 100644 --- a/weaver/src/org/aspectj/weaver/Lint.java +++ b/weaver/src/org/aspectj/weaver/Lint.java @@ -111,6 +111,9 @@ public class Lint { public final Kind unorderedAdviceAtShadow = new Kind("unorderedAdviceAtShadow","at this shadow {0} no precedence is specified between advice applying from aspect {1} and aspect {2}"); + public final Kind swallowedExceptionInCatchBlock = + new Kind("swallowedExceptionInCatchBlock","exception swallowed in catch block"); + // there are a lot of messages in the cant find type family - I'm defining an umbrella lint warning that // allows a user to control their severity (for e.g. ltw or binary weaving) public final Kind cantFindType = diff --git a/weaver/src/org/aspectj/weaver/XlintDefault.properties b/weaver/src/org/aspectj/weaver/XlintDefault.properties index 2fc6d25d2..bef407969 100644 --- a/weaver/src/org/aspectj/weaver/XlintDefault.properties +++ b/weaver/src/org/aspectj/weaver/XlintDefault.properties @@ -39,3 +39,4 @@ cantFindType = error cantFindTypeAffectingJPMatch = warning unorderedAdviceAtShadow=ignore +swallowedExceptionInCatchBlock=warning