CssParser.colorValueOfString() parses a string into a Color. If this fails by throwing an exception, null is returned, signalling to the caller that the color string might be a lookup instead.
Since color lookups can appear in many places in a CSS file, it is preferable to use return values for flow control instead of exceptions.
Since color lookups can appear in many places in a CSS file, it is preferable to use return values for flow control instead of exceptions.
- relates to
-
JDK-8201135 CSSParser falls back to Web.color for standard JavaFX CSS properties causing excessive exception handling on JavaApplicationThread
-
- Open
-
-
JDK-8330186 CSS: Persistent ClassCastException
-
- Open
-
- links to
-
Review(master)
openjdk/jfx/2093