From 3d6a9bfbec123c41596a226598de8e07b83c1fc0 Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 3 Nov 2005 17:10:15 +0000 Subject: [PATCH] new Lint warning for pr62606 - warns when an ITDC does not contain an explicit constructor call. --- weaver/src/org/aspectj/weaver/Lint.java | 5 ++++- weaver/src/org/aspectj/weaver/XlintDefault.properties | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5