On 10/10/2011 02:51 PM, Scott Carey wrote:
> Does it work with <stringType>Utf8</stringType> ?  (Sorry, I've been
> unable to test many patches recently).

Yes.

> I'm not a big fan of what our docs will say:  "never use the default of
> CharSequence, its broken".  But I can live with that.

It's only as broken as the use of Object in the Map API is broken, and
as broken as the entire collections API was broken before generics were
added to Java.  Which is to say, there are bugs that could be caught at
compile time that will instead only be manifested at runtime.  This is
not ideal, but neither is it fatal.  It requires that applications
depend a bit more on good unit tests than just on successful compilation.

Long-term it would certainly be nice to change the default to something
that better leverages compile time type checking.  But for the 1.6
release I think it would be a mistake to require application code
changes.  We just got a bunch of projects to upgrade to 1.5.  It'd be
really nice if 1.6 could be a drop-in replacement and that we not
require changes and releases to these projects before any can upgrade.

Doug

Reply via email to