<i18n dev> RFR: 8358880: Performance of parsing with DecimalFormat can be improved

Naoto Sato naoto at openjdk.org
Mon Jun 9 22:11:26 UTC 2025


On Mon, 9 Jun 2025 22:03:37 GMT, Johannes Graham <duke at openjdk.org> wrote:

>> The existing implementation does not throw `NumberFormatException`/`ArithmeticException`, but `ParseException` if parsing is failing. I would expect the same here.
>
> Sorry, I'm not seeing where the original could throw ParseException.

Sorry if I was unclear. I mean the `parse()` in the NumberFormat do not throw NumberFormatException/ArithmeticException, but ParseException, so if this piece of code need to throw something, it should be `ParseException`

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25644#discussion_r2136578931


More information about the i18n-dev mailing list