Comment #26 on issue 436 by mcculls: Provide access to Guice's own internal TypeConverters
http://code.google.com/p/google-guice/issues/detail?id=436
Wrt. the Errors change - what if I (as a user) want to add a binder error message that contains a potentially null message parameter? ie. like binder.addError("Some error, value=%s", value); where value might possibly be null.
This is not an unusual situation, but at the moment this will cause an NPE inside the format conversion code in Guice, wiping out the original error message and replacing it with a misleading stack trace that suggests the problem lies inside Guice rather than the true cause.
This is also inconsistent with the javadoc for Binder.addError() which states that String.format() will be used to format the message, and String.format() can handle null message parameters whereas currently Errors cannot.
-- You received this message because you are subscribed to the Google Groups "google-guice-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
