summaryrefslogtreecommitdiffstats
path: root/loadtime
diff options
context:
space:
mode:
authormwebster <mwebster>2006-10-02 10:01:44 +0000
committermwebster <mwebster>2006-10-02 10:01:44 +0000
commitffc92dd6db1ac49de4f6396ff0e38834c7344cde (patch)
tree8610f029744b3c669f58b8e117c38ece73bfa5f9 /loadtime
parent6de65b3a76da5d63412c3fd325754bd9f804cfc5 (diff)
downloadaspectj-ffc92dd6db1ac49de4f6396ff0e38834c7344cde.tar.gz
aspectj-ffc92dd6db1ac49de4f6396ff0e38834c7344cde.zip
Bug 158205 "NullPointerException when weaving with bootstrap agent" (improve declare parents LTW tests)
Diffstat (limited to 'loadtime')
-rw-r--r--loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java18
1 files changed, 13 insertions, 5 deletions
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);
+// }
}
}