From: acolyer Date: Thu, 3 Nov 2005 17:10:15 +0000 (+0000) Subject: new Lint warning for pr62606 - warns when an ITDC does not contain an explicit constr... X-Git-Tag: V1_5_0RC1~264 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3d6a9bfbec123c41596a226598de8e07b83c1fc0;p=aspectj.git new Lint warning for pr62606 - warns when an ITDC does not contain an explicit constructor call. --- diff --git a/weaver/src/org/aspectj/weaver/Lint.java b/weaver/src/org/aspectj/weaver/Lint.java index f4518694d..d0b22e47c 100644 --- a/weaver/src/org/aspectj/weaver/Lint.java +++ b/weaver/src/org/aspectj/weaver/Lint.java @@ -98,7 +98,10 @@ public class Lint { public final Kind noGuardForLazyTjp = new Kind("noGuardForLazyTjp","can not build thisJoinPoint lazily for this advice since it has no suitable guard. The advice applies at {0}"); - + + public final Kind noExplicitConstructorCall = + new Kind("noExplicitConstructorCall","inter-type constructor does not contain explicit constructor call: field initializers in the target type will not be executed"); + public Lint(World world) { this.world = world; } diff --git a/weaver/src/org/aspectj/weaver/XlintDefault.properties b/weaver/src/org/aspectj/weaver/XlintDefault.properties index e0044b3d2..da3856a79 100644 --- a/weaver/src/org/aspectj/weaver/XlintDefault.properties +++ b/weaver/src/org/aspectj/weaver/XlintDefault.properties @@ -28,4 +28,5 @@ adviceDidNotMatch = warning invalidTargetForAnnotation = warning elementAlreadyAnnotated = warning runtimeExceptionNotSoftened = warning -uncheckedArgument = warning \ No newline at end of file +uncheckedArgument = warning +noExplicitConstructorCall = warning