Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javafx.css.SimpleSelector in javafx.css has been deprecated and marked for removal #726

Closed
jperedadnr opened this issue Sep 27, 2024 · 0 comments · Fixed by #730
Closed

Comments

@jperedadnr
Copy link
Collaborator

javafx.css.SimpleSelector and javafx.css.CompoundSelector are deprecated in 23, see https://bugs.openjdk.org/browse/JDK-8324182, and removed in 24-ea, see https://bugs.openjdk.org/browse/JDK-8323706.

These are used in Kit CSSInternal::getStyleClasses, and the fix should be simple, just using this code:

for (Rule r : s.getRules()) {
            for (Selector ss : r.getSelectors()) {
                styleClasses.addAll(ss.getStyleClassNames());
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant