From: mwebster Date: Mon, 2 Oct 2006 10:01:44 +0000 (+0000) Subject: Bug 158205 "NullPointerException when weaving with bootstrap agent" (improve declare... X-Git-Tag: BEFORE_133532~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ffc92dd6db1ac49de4f6396ff0e38834c7344cde;p=aspectj.git Bug 158205 "NullPointerException when weaving with bootstrap agent" (improve declare parents LTW tests) --- diff --git a/loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java b/loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java index df06ee773..6589663fd 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java +++ b/loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java @@ -29,11 +29,19 @@ public class DefaultMessageHandler implements IMessageHandler { if (isIgnoring(message.getKind())) { return false; } else { - if (message.getKind().isSameOrLessThan(IMessage.INFO)) { - return SYSTEM_OUT.handleMessage(message); - } else { - return SYSTEM_ERR.handleMessage(message); - } + /* + * TODO maw We ship this class but don't use or document it. Changed + * to use stderr instead of stdout to allow improvements to LTW tests. + * Currently many pass whether or not LTW occurs because they are + * already woven. Some changed to check for appropriate weaving messages + * as well as absence of warnings or errors. + */ + return SYSTEM_ERR.handleMessage(message); +// if (message.getKind().isSameOrLessThan(IMessage.INFO)) { +// return SYSTEM_OUT.handleMessage(message); +// } else { +// return SYSTEM_ERR.handleMessage(message); +// } } } diff --git a/tests/java5/ataspectj/ataspectj/aop-decptest.xml b/tests/java5/ataspectj/ataspectj/aop-decptest.xml index 3e607df7d..f602f40be 100644 --- a/tests/java5/ataspectj/ataspectj/aop-decptest.xml +++ b/tests/java5/ataspectj/ataspectj/aop-decptest.xml @@ -1,6 +1,6 @@ - + diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml index a27ecd482..2fb728485 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml @@ -245,7 +245,15 @@ options="-1.5" /> - + + + + + + + + +