]> source.dussan.org Git - aspectj.git/commitdiff
210114: test and fix: errors for compiler limitations become warnings
authoraclement <aclement>
Thu, 21 Aug 2008 18:00:22 +0000 (18:00 +0000)
committeraclement <aclement>
Thu, 21 Aug 2008 18:00:22 +0000 (18:00 +0000)
weaver/src/org/aspectj/weaver/Advice.java

index 0f5a8e7de375ecdaa924351a99a0af36aa51bd82..6efb959af94154883b7bfa1a4a9879d3b611abc1 100644 (file)
@@ -159,12 +159,12 @@ public abstract class Advice extends ShadowMunger {
                        return shadow.hasThis();
                } else if (kind == AdviceKind.Around) {
                        if (shadow.getKind() == Shadow.PreInitialization) {
-                               world.showMessage(IMessage.ERROR,
+                               world.showMessage(IMessage.WARNING,
                                                WeaverMessages.format(WeaverMessages.AROUND_ON_PREINIT),
                                                        getSourceLocation(), shadow.getSourceLocation());
                                        return false;
                                } else if (shadow.getKind() == Shadow.Initialization) {
-                                       world.showMessage(IMessage.ERROR,
+                                       world.showMessage(IMessage.WARNING,
                                                        WeaverMessages.format(WeaverMessages.AROUND_ON_INIT),
                                                        getSourceLocation(), shadow.getSourceLocation());
                                        return false;