RFR: 8336389: Infinite loop occurs while resolving lookups [v5]
Kevin Rushforth
kcr at openjdk.org
Thu Jul 25 14:57:45 UTC 2024
On Mon, 22 Jul 2024 22:38:17 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> John Hendrikx has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add lines I forgot to commit
>
> modules/javafx.graphics/src/test/java/test/javafx/scene/CssStyleHelperTest.java line 699:
>
>> 697:
>> 698: // Note: on Windows, the message is using inconsistent line endings (sometimes Windows, sometimes Linux)
>> 699: // so I've stripped it.
>
> would looking for substrings be a better solution? for example:
>
>
> contains("Caught java.lang.IllegalArgumentException: Loop detected in *.root{") &&
> contains("while resolving '-fx-base'' while calculating value for '-fx-background-color' from rule '*.pane' in stylesheet"
Yeah, this seems less fragile. If we ever run into a problem because the message changes slightly, we could consider such a change in the future.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1505#discussion_r1691604202
More information about the openjfx-dev
mailing list