Expecting Integer.valueOf(String) to accept Literal format ...
Andrew Haley
aph at redhat.com
Sat Apr 9 13:33:59 UTC 2016
On 04/09/2016 12:33 PM, Christoph Engelbert wrote:
> Not sure it would risk breaking compatibility. It’s fairly easy to
> support it by just replacing underscore before parsing. Do you think
> of code that is expected to not parse underscore arguments?
Yes.
> I think it’s a fair request to support underscore based integer
> representations, even though I never needed it yet, anyhow it makes
> sense to me to give users the possibility to have the same integer
> representation in, let’s say, properties files.
Code which rejects underscores in strings today would not reject
underscores if this were changed. This is a change which is visible
to applications.
Andrew.
More information about the core-libs-dev
mailing list