diff options
author | aclement <aclement> | 2005-11-15 14:34:45 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-15 14:34:45 +0000 |
commit | e8b6bde2173e74a5969162aee2de59eee9476456 (patch) | |
tree | 1c469d92f242d6299a55a9c47f51782066fd3270 /loadtime | |
parent | fdfc78fba8bbc7afc8cd03e2cf11c3547c032b87 (diff) | |
download | aspectj-e8b6bde2173e74a5969162aee2de59eee9476456.tar.gz aspectj-e8b6bde2173e74a5969162aee2de59eee9476456.zip |
Matthews patches for 115275
Diffstat (limited to 'loadtime')
-rw-r--r-- | loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java b/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java index 3ca6d69cf..bbbbc7bfa 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java +++ b/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java @@ -19,9 +19,11 @@ import org.aspectj.bridge.Message; import org.aspectj.bridge.MessageUtil; import org.aspectj.util.LangUtil; import org.aspectj.weaver.ICrossReferenceHandler; +import org.aspectj.weaver.Lint; import org.aspectj.weaver.ResolvedType; import org.aspectj.weaver.UnresolvedType; import org.aspectj.weaver.World; +import org.aspectj.weaver.Lint.Kind; import org.aspectj.weaver.bcel.BcelWeaver; import org.aspectj.weaver.bcel.BcelWorld; import org.aspectj.weaver.bcel.Utility; @@ -175,9 +177,8 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor { info("no configuration found. Disabling weaver for class loader " + getClassLoaderName(loader)); } } catch (Exception e) { - weaver.getWorld().getMessageHandler().handleMessage( - new Message("Register definition failed", IMessage.WARNING, e, null) - ); + enabled = false;// will allow very fast skip in shouldWeave() + warn("register definition failed",e); } } @@ -284,6 +285,12 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor { } } + protected void lint (String name, String[] infos) { + Lint lint = bcelWorld.getLint(); + Kind kind = lint.getLintKind(name); + kind.signal(infos,null,null); + } + /** * Register the aspect, following include / exclude rules * @@ -312,6 +319,10 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor { namespace = namespace.append(";"+aspectClassName); } } + else { +// warn("aspect excluded: " + aspectClassName); + lint("aspectExcludedByConfiguration", new String[] { aspectClassName, getClassLoaderName(loader) }); + } } } |