Integer.decode() patch for negative numbers

Eric Blake ebb9@email.byu.edu
Mon Apr 1 07:27:00 GMT 2002


Have you compared this to Classpath?  I already patched the problem
there, in a slightly different manner.  In fact, a general remerge of
the wrapper classes would be useful.

Mark Wielaard wrote:
> 
> Hi,
> 
> The following fixes two problems I found with Mauve.
> With this patch we throw a NullPointerException when the argument to
> decode is null. And we can now correctly decode Strings like "-0x0".
> 
> 2002-04-01  Mark Wielaard  <mark@klomp.org>
> 
>     * java/lang/Integer.java (decode): Throw NullPointerException when
>     argument is null. A minus sign can precede other leading characters.
> 
> OK to commit to mainline/branch?
> 
> Cheers,
> 
> Mark
> 

-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
  BYU student, free software programmer



More information about the Java-patches mailing list