Skip to content

Conversation

@kevinrushforth
Copy link
Member

@kevinrushforth kevinrushforth commented Nov 1, 2025

This PR removes the unused dependency on jdk.unsupported from javafx.graphics as a followup to JDK-8334137, which replaced the use of sun.misc.Unsafe with FFM in PR #1814. sun.misc.Unsafe was the only use of jdk.unsupported, so it can now be removed.

It also removes the no-longer-needed -XDignore.symbol.file flag from build.gradle.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issues

  • JDK-8371087: Remove unused dependency on jdk.unsupported from javafx.graphics (Bug - P4)
  • JDK-8179462: Remove obsolete -XDignore.symbol.file flag from build (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1957/head:pull/1957
$ git checkout pull/1957

Update a local copy of the PR:
$ git checkout pull/1957
$ git pull https://git.openjdk.org/jfx.git pull/1957/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1957

View PR using the GUI difftool:
$ git pr show -t 1957

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1957.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 1, 2025

👋 Welcome back kcr! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 1, 2025

@kevinrushforth This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8371087: Remove unused dependency on jdk.unsupported from javafx.graphics
8179462: Remove obsolete -XDignore.symbol.file flag from build

Reviewed-by: mhanl, arapte

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Ready for review label Nov 1, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 1, 2025

Webrevs

@bourgesl
Copy link
Collaborator

bourgesl commented Nov 1, 2025

LGTM.
Good job!

Copy link
Member

@Maran23 Maran23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Can confirm that the last sun.misc usage is WebEngine.java in the android folder in javafx.web, as also noted in the comment in #1814 (comment).

@AnirvanSarkar
Copy link
Member

As sun.misc.Unsafe is not used anymore, maybe then also remove the references to XDignore.symbol.file flag in build.gradle.

I noticed JDK-8179462 already exists to remove the flag from javadoc build.

@Maran23
Copy link
Member

Maran23 commented Nov 2, 2025

As sun.misc.Unsafe is not used anymore, maybe then also remove the references to XDignore.symbol.file flag in build.gradle.

I noticed JDK-8179462 already exists to remove the flag from javadoc build.

That sounds indeed reasonable! As mentioned above, there is one sun.misc usage left in the android folder, so we may need to check that out first.

@kevinrushforth
Copy link
Member Author

As sun.misc.Unsafe is not used anymore, maybe then also remove the references to XDignore.symbol.file flag in build.gradle.
I noticed JDK-8179462 already exists to remove the flag from javadoc build.

That sounds indeed reasonable!

Agreed. I'll expand JDK-8179462 to remove -XDignore.symbol.file entirely, both as a javadoc and javac option and then add that issue to this PR.

As mentioned above, there is one sun.misc usage left in the android folder, so we may need to check that out first.

Since that file cannot possibly compile without some additional modification to the JDK and/or JavaFX anyway, I don't see any harm removing this option from build.gradle. The right fix for the obsolete sun.misc usage in the android folder would be to replace sun.misc.BASE64Encoder with java.util.Base64 as we did for the rest of JavaFX. I'll file a follow-on bug for that.

@kevinrushforth
Copy link
Member Author

/issue add 8179462

@openjdk
Copy link

openjdk bot commented Nov 3, 2025

@kevinrushforth
Adding additional issue to issue list: 8179462: Remove obsolete -XDignore.symbol.file flag from build.

@kevinrushforth
Copy link
Member Author

kevinrushforth commented Nov 3, 2025

I filed JDK-8371157 to track replacing the obsolete usage of sun.misc.BASE64Encoder in the android dir.

I also filed JDK-8371158 as a follow-on to investigate removing a workaround for setting javac options that is described as only being needed so we can set -XDignore.symbol.file.

@kevinrushforth
Copy link
Member Author

@arapte Can you be the primary Reviewer?

module javafx.graphics {
requires java.desktop;
requires java.xml;
requires jdk.unsupported;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Copy link
Member

@arapte arapte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@openjdk openjdk bot added the ready Ready to be integrated label Nov 4, 2025
@kevinrushforth
Copy link
Member Author

/integrate

@openjdk
Copy link

openjdk bot commented Nov 4, 2025

Going to push as commit a4e5451.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 4, 2025
@openjdk openjdk bot closed this Nov 4, 2025
@openjdk openjdk bot removed ready Ready to be integrated rfr Ready for review labels Nov 4, 2025
@openjdk
Copy link

openjdk bot commented Nov 4, 2025

@kevinrushforth Pushed as commit a4e5451.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@kevinrushforth kevinrushforth deleted the 8371087-rm-jdk.unsupported branch November 4, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

5 participants