RFR: 8291853: [CSS] ClassCastException in CssStyleHelper calculateValue [v2]
Michael Strauß
mstrauss at openjdk.org
Thu Nov 10 20:22:34 UTC 2022
On Thu, 10 Nov 2022 20:11:55 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> A race condition exists where a derived color depends on another derived color which has not been yet defined or processed. The only side effect of this condition is a ClassCastException - the color eventually gets resolved.
>>
>> Solution: initialize the derived color to transparent earlier to suppress the exception.
>>
>> This was also a test bug https://bugs.openjdk.org/browse/JDK-8198604
>
> Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:
>
> 8291853: review comments
Isn't it a bit strange that a valid CSS file would produce a `ClassCastException` in the first place?
Maybe that should be fixed in the CSS subsystem instead.
-------------
PR: https://git.openjdk.org/jfx/pull/947
More information about the openjfx-dev
mailing list