From e3cfca7e4d8f1e72b2ebb7e669eb440a3426df66 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 19 Apr 2005 12:36:20 +0000 Subject: [PATCH] from branch: mod to check if exceptions must be verified or not... --- weaver/src/org/aspectj/weaver/ShadowMunger.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/ShadowMunger.java b/weaver/src/org/aspectj/weaver/ShadowMunger.java index 9425cd6fd..4ff34b89d 100644 --- a/weaver/src/org/aspectj/weaver/ShadowMunger.java +++ b/weaver/src/org/aspectj/weaver/ShadowMunger.java @@ -16,7 +16,6 @@ package org.aspectj.weaver; import java.util.Collection; import org.aspectj.asm.AsmManager; -import org.aspectj.asm.internal.ProgramElement; import org.aspectj.bridge.ISourceLocation; import org.aspectj.util.PartialOrder; import org.aspectj.weaver.patterns.PerClause; @@ -119,4 +118,12 @@ public abstract class ShadowMunger implements PartialOrder.PartialComparable, IH * might be thrown by this munger */ public abstract Collection getThrownExceptions(); + + /** + * Does the munger has to check that its exception are accepted by the shadow ? + * ATAJ: It s not the case for @AJ around advice f.e. that can throw Throwable, even if the advised + * method does not throw any exceptions. + * @return true if munger has to check that its exceptions can be throwned based on the shadow + */ + public abstract boolean mustCheckExceptions(); } -- 2.39.5