RFR(S): 8055032: Improve numerical parsing in java.net and sun.net

Alan Bateman Alan.Bateman at oracle.com
Sat Aug 16 08:33:20 UTC 2014


On 14/08/2014 14:39, Alan Bateman wrote:
> On 14/08/2014 14:23, Claes Redestad wrote:
>> How about methods only taking beginIndex? Integer.parseInt("x: 
>> 10000000", 3, 10)? I guess these could to be dropped
>> to avoid ambiguity and instead allow for variations where radix can 
>> be left out.
>>
>> I think there are two alternatives to the current implementation:
>> - only keep parseInt(CharSequence s, int beginIndex, int endIndex, 
>> int radix)
> That's my preference, and core-libs-dev would be the place to move the 
> discussion.
I've created JDK-8055251 to track re-examining these methods.

-Alan


More information about the net-dev mailing list