]> source.dussan.org Git - aspectj.git/commitdiff
292239
authoraclement <aclement>
Wed, 23 Mar 2011 16:22:51 +0000 (16:22 +0000)
committeraclement <aclement>
Wed, 23 Mar 2011 16:22:51 +0000 (16:22 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/Advice.java

index e368fd3c372ad8cc94c0f744af45d3da7d8ed55e..706303b3944bc7631d7d8b8308cf8b220ba03101 100644 (file)
@@ -137,7 +137,7 @@ public abstract class Advice extends ShadowMunger {
                                return matches;
                        } else if (hasExtraParameter() && kind == AdviceKind.AfterThrowing) { // pr119749
                                ResolvedType exceptionType = getExtraParameterType().resolve(world);
-                               if (!exceptionType.isCheckedException()) {
+                               if (!exceptionType.isCheckedException() || exceptionType.getName().equals("java.lang.Exception")) { // pr292239
                                        return true;
                                }
                                UnresolvedType[] shadowThrows = shadow.getSignature().getExceptions(world);