RFR: 8291853: [CSS] ClassCastException in CssStyleHelper calculateValue [v2]

Andy Goryachev angorya at openjdk.org
Thu Nov 10 20:42:41 UTC 2022


On Thu, 10 Nov 2022 20:20:33 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

> 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.

The exception is benign: it tries to resolve a derived color which depends on something that has not been resolved yet, but will eventually get resolved.  Like an isolated TableCell trying to applyCSS prior to its inclusion in a TableView.

Trying to fix the CSS subsystem is much, much heavier task.  Given the fact that the issue causes no visual effects whatsoever I'd say it's not worth the trouble.

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

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


More information about the openjfx-dev mailing list