So, it's my first day using slf4j, and I think it's great!  The message
formatter is wonderful and it's very simple to use.

However, I find with a message like this:

ComplexObject j;
logger.warn("This is my format {}", j);

I'm relying on MessageFormat to show a null intelligently. (Which
StringBuffer seems apt to do)  However, in this case, it appears when
running on JRE 1.6.0 b2, that the compiler thinks that a null j is
actually an Object[] instead of an Object, which means MessageFormat
gets a null array instead of a null object.

The fix is attached.

Thanks!

Joseph Gooch
Sapphire Suite Product Manager
K12 Systems, Inc.
(866) 366-9540

Attachment: slf4j_messageFormat_fix.patch
Description: slf4j_messageFormat_fix.patch

_______________________________________________
dev mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to