RFR 8196740 : Character.digit(int, int) returns wrong value for out of range radix
ivan.gerasimov at oracle.com
Sat Feb 3 01:14:51 UTC 2018
The recent fix for JDK-8196331  appeared to slightly change the behavior.
Specifically, if the radix is greater than MAX_RADIX then the method may
return a non-negative value, even though the spec requires it must
return -1 .
Would you please help review the fix?
I suspect that this version may even work a tiny bit faster, as we
perform less comparisons in a common case.
Thanks in advance!
With kind regards,
More information about the core-libs-dev