RFR: 4993841: (str) java.lang.Character should have a toString(int) method
stuart.marks at oracle.com
Sat Mar 3 01:50:40 UTC 2018
I note that other codepoint-consuming methods, such as
Character.toChars(cp, char, int)
all throw IAE with no message. It would be nice to add messages to them. It
would be even nicer to print out the offending value, possibly even in hex.
Indeed, there are several other places in Character.java where exceptions are
thrown that lack diagnostic information. Maybe as part of a separate cleanup pass?
On 3/2/18 3:37 PM, naoto.sato at oracle.com wrote:
> Thanks for comments, Martin, Roger. Updated the fix as follows:
> On 3/1/18 6:47 PM, naoto.sato at oracle.com wrote:
>> Please review the fix to the following issue:
>> The proposed changeset is located at:
>> This stems from the recent discussion regarding String.repeat(). The
>> corresponding CSR has already been approved.
More information about the core-libs-dev