]> source.dussan.org Git - aspectj.git/commitdiff
166647 changed the error message to a lint
authoraclement <aclement>
Tue, 18 Dec 2007 15:46:05 +0000 (15:46 +0000)
committeraclement <aclement>
Tue, 18 Dec 2007 15:46:05 +0000 (15:46 +0000)
weaver/src/org/aspectj/weaver/Lint.java
weaver/src/org/aspectj/weaver/XlintDefault.properties
weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java

index 1dcf127d7cbcb2cb7d6530397df4bd33a8255b8d..178995159d048475df07f95825e1f57f9be5f1c3 100644 (file)
@@ -128,6 +128,9 @@ public class Lint {
        public final Kind advisingSynchronizedMethods = new Kind("advisingSynchronizedMethods",
                        "advice matching the synchronized method shadow ''{0}'' will be executed outside the lock rather than inside (compiler limitation)");
 
+       public final Kind mustWeaveXmlDefinedAspects = new Kind("mustWeaveXmlDefinedAspects",
+                       "XML Defined aspects must be woven in cases where cflow pointcuts are involved. Currently the include/exclude patterns exclude ''{0}''");
+       
        private static Trace trace = TraceFactory.getTraceFactory().getTrace(Lint.class);
        
     public Lint(World world) {
index e10fa4797bbf05b480bfb37ae9be21d99458a781..6a735adb15adb24e7254adfcd1a10ed4ee4db0cc 100644 (file)
@@ -41,4 +41,5 @@ cantFindTypeAffectingJPMatch = warning
 unorderedAdviceAtShadow=ignore
 swallowedExceptionInCatchBlock=ignore
 calculatingSerialVersionUID=ignore
-advisingSynchronizedMethods=warning
\ No newline at end of file
+advisingSynchronizedMethods=warning
+mustWeaveXmlDefinedAspects=warning
\ No newline at end of file
index 74654136b040e4ac14d9ebd15946acc9f364acb3..ff24576251cd59bff9cdb881c5c70537b4a98001 100644 (file)
@@ -262,7 +262,9 @@ public class WeavingAdaptor implements IMessageContext {
                                        bytes = getWovenBytes(name, bytes);
                                } else if (shouldWeaveAnnotationStyleAspect(name, bytes)) {
                                        if (mustWeave) {
-                                               error("XML Defined aspects must be woven in cases where cflow pointcuts are involved. Currently the include/exclude patterns exclude '"+name+"'");
+                                               if (bcelWorld.getLint().mustWeaveXmlDefinedAspects.isEnabled()) {
+                                                       bcelWorld.getLint().mustWeaveXmlDefinedAspects.signal(name,null);
+                                               }
                                        }
                            // an @AspectJ aspect needs to be at least munged by the aspectOf munger
                            debug("weaving '" + name + "'");