RFR: 8377427: Reduce substring allocations in Color.web(String, double) [v2]
Michael Strauß
mstrauss at openjdk.org
Wed Feb 11 09:57:31 UTC 2026
On Tue, 10 Feb 2026 19:05:18 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> On the JVM, `-0 == 0`. It seems to me that this sentence just spells it out, doesn't it?
>
> I don't know. The new parser parses "-0.0" as -0.0, and while (-0.0 == 0.0), the result of some other operations is different (1/-0.0 = -Infinity).
>
> Does it constitutes a regression risk for applications?
`CssNumberParser` parses "-0" correctly as -0, just like `Double.parseDouble()` currently does. The existing code in `Color` is unchanged.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2069#discussion_r2790083018
More information about the openjfx-dev
mailing list