diff options
author | acolyer <acolyer> | 2005-08-21 19:52:49 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-21 19:52:49 +0000 |
commit | ce7e64ba610a2957b81d373986668c6cf60b8722 (patch) | |
tree | 95995d6db9cd64cdf38f93ef10c4621d3e1771a2 /weaver/src | |
parent | 3cedc6ef49a4a98ed33701d3545074ac97f2af04 (diff) | |
download | aspectj-ce7e64ba610a2957b81d373986668c6cf60b8722.tar.gz aspectj-ce7e64ba610a2957b81d373986668c6cf60b8722.zip |
fix for pr83377.aj
Diffstat (limited to 'weaver/src')
-rw-r--r-- | weaver/src/org/aspectj/weaver/ResolvedType.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/weaver/src/org/aspectj/weaver/ResolvedType.java b/weaver/src/org/aspectj/weaver/ResolvedType.java index 1d4b40188..c062c22c9 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedType.java +++ b/weaver/src/org/aspectj/weaver/ResolvedType.java @@ -1284,9 +1284,10 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl if (parentExceptions[j].isAssignableFrom(childExceptions[i])) continue outer; } - world.showMessage(IMessage.ERROR, - WeaverMessages.format(WeaverMessages.ITD_DOESNT_THROW,childExceptions[i].getName()), - child.getSourceLocation(), null); + // this message is now better handled my MethodVerifier in JDT core. +// world.showMessage(IMessage.ERROR, +// WeaverMessages.format(WeaverMessages.ITD_DOESNT_THROW,childExceptions[i].getName()), +// child.getSourceLocation(), null); return false; } @@ -1294,10 +1295,12 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl world.showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.ITD_OVERRIDDEN_STATIC,child,parent), child.getSourceLocation(),null); + return false; } else if (child.isStatic() && !parent.isStatic()) { world.showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.ITD_OVERIDDING_STATIC,child,parent), child.getSourceLocation(),null); + return false; } return true; |