Integrated: 8291853: [CSS] ClassCastException in CssStyleHelper calculateValue

Andy Goryachev angorya at openjdk.org
Mon Nov 14 18:25:46 UTC 2022


On Thu, 10 Nov 2022 17:52:50 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

This pull request has now been integrated.

Changeset: 7ec0852c
Author:    Andy Goryachev <angorya at openjdk.org>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/7ec0852cca60a4093db0f68cf91da1291a9cf978
Stats:     3 lines in 1 file changed: 3 ins; 0 del; 0 mod

8291853: [CSS] ClassCastException in CssStyleHelper calculateValue

Reviewed-by: aghaisas

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

PR: https://git.openjdk.org/jfx/pull/947


More information about the openjfx-dev mailing list