summaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2005-03-10 12:06:42 +0000
committeraclement <aclement>2005-03-10 12:06:42 +0000
commit240e6e1260e17657e5838381bc3ce98956561d76 (patch)
treedcba1b294e5bf621ac7e4e33ad86cee0c131e3c2 /weaver
parent13e2263ead2583b1be4a7329611c45e233d04db0 (diff)
downloadaspectj-240e6e1260e17657e5838381bc3ce98956561d76.tar.gz
aspectj-240e6e1260e17657e5838381bc3ce98956561d76.zip
Declare annotation: New lints
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/Lint.java6
-rw-r--r--weaver/src/org/aspectj/weaver/XlintDefault.properties4
2 files changed, 9 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/Lint.java b/weaver/src/org/aspectj/weaver/Lint.java
index 2645dd547..6f94f9897 100644
--- a/weaver/src/org/aspectj/weaver/Lint.java
+++ b/weaver/src/org/aspectj/weaver/Lint.java
@@ -76,7 +76,13 @@ public class Lint {
public final Kind adviceDidNotMatch =
new Kind("adviceDidNotMatch","advice defined in {0} has not been applied");
+
+ public final Kind invalidTargetForAnnotation =
+ new Kind("invalidTargetForAnnotation","{0} is not a valid target for annotation {1}, this annotation can only be applied to {2}");
+ public final Kind elementAlreadyAnnotated =
+ new Kind("elementAlreadyAnnotated","{0} - already has an annotation of type {1}, cannot add a second instance");
+
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 67670fa4a..0de844d38 100644
--- a/weaver/src/org/aspectj/weaver/XlintDefault.properties
+++ b/weaver/src/org/aspectj/weaver/XlintDefault.properties
@@ -20,4 +20,6 @@ noJoinpointsForBridgeMethods = warning
cantMatchArrayTypeOnVarargs = ignore
enumAsTargetForDecpIgnored = warning
annotationAsTargetForDecpIgnored = warning
-adviceDidNotMatch = warning \ No newline at end of file
+adviceDidNotMatch = warning
+invalidTargetForAnnotation = warning
+elementAlreadyAnnotated = warning \ No newline at end of file