Hi
I changed the ConvertUtils. Now the wrapper classes get a null value instead
of
a zero when the string is not valid. The native types get a default value,
which
is actually zero, but is changeable through a method.
Also add support for short.
Ralph
>I'm open to suggestion on alternatives.
>The problem is that there is nothing in the range of most of the primitive
types
>(byte, char, int, long) that corresponds to a "null" value for an object
>reference. The only thing we can do is:
>* Pick one particular value to be ambiguous ("did the user
> really type a zero or not?").
>* Throw a conversion exception, which just throws the
> same decision back up a level.
ConvertUtils.java