From: aclement Date: Thu, 10 Mar 2005 11:55:16 +0000 (+0000) Subject: Declare Annotation: new message X-Git-Tag: V1_5_0M2~95 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6e82daf32f81bc653025e9551b7820bf78104fa;p=aspectj.git Declare Annotation: new message --- diff --git a/weaver/src/org/aspectj/weaver/WeaverMessages.java b/weaver/src/org/aspectj/weaver/WeaverMessages.java index 1fcde28ca..1037afdbb 100644 --- a/weaver/src/org/aspectj/weaver/WeaverMessages.java +++ b/weaver/src/org/aspectj/weaver/WeaverMessages.java @@ -123,6 +123,8 @@ public class WeaverMessages { public static final String REFERENCE_TO_NON_ANNOTATION_TYPE = "referenceToNonAnnotationType"; public static final String BINDING_NON_RUNTIME_RETENTION_ANNOTATION = "bindingNonRuntimeRetentionAnnotation"; + public static final String INCORRECT_TARGET_FOR_DECLARE_ANNOTATION = "incorrectTargetForDeclareAnnotation"; + public static String format(String key) { return bundle.getString(key); } diff --git a/weaver/src/org/aspectj/weaver/weaver-messages.properties b/weaver/src/org/aspectj/weaver/weaver-messages.properties index e33fa4557..32957a57b 100644 --- a/weaver/src/org/aspectj/weaver/weaver-messages.properties +++ b/weaver/src/org/aspectj/weaver/weaver-messages.properties @@ -131,6 +131,7 @@ itdfOnAnnotationNotAllowed=can''t make inter-type field declarations on annotati cantDecpOnAnnotationToImplInterface=can''t use declare parents to make annotation type {0} implement an interface cantDecpOnAnnotationToExtendClass=can''t use declare parents to alter supertype of annotation type {0} cantDecpToMakeAnnotationSupertype=can''t use declare parents to make ''java.lang.annotation.Annotation'' the parent of type {0} +incorrectTargetForDeclareAnnotation={0} is not a valid target for annotation {1}, this annotation can only be applied to these element types {2} referenceToNonAnnotationType=Type referred to is not an annotation type: {0} bindingNonRuntimeRetentionAnnotation=Annotation type {0} does not have runtime retention