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
8269967: JavaFX should fail fast on macOS below minimum version #567
8269967: JavaFX should fail fast on macOS below minimum version #567
Conversation
/reviewers 2 |
👋 Welcome back kcr! A progress list of the required criteria for merging this PR into |
@kevinrushforth |
99f7ebf
to
326082c
Compare
326082c
to
32e2e60
Compare
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked and tested this, and it does what is expected.
I wonder if it would be better to move the check to the JNI_OnLoad method though, as that will be invoked (slightly) before the initIDs.
Thanks for the suggestion. I tried it and found that it leads to a less clear exception message.
So I'd prefer to leave it in |
Alternatively, I could add a new JNI function to check the version, and call that right after the |
You are right, the UnsatisfiedLinkError is a bit misleading in this case. |
I think it's ok to keep it in the initIDs, as that is called immediately after the loadLibrary. A new JNI function seems a bit overkill -- it would have fit nicely in the JNI_OnLoad but I do agree that that is not the best approach, since it will convert the exception/error into an UnsatiffiedLinkError. |
Agreed. I decided to move the check up to be the first thing done in |
@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:
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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/integrate |
@kevinrushforth Pushed as commit 00b353e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR implements a version check in the JavaFX runtime initialization code on macOS to ensure that the platform is running a version of macOS that is at or above the minimum version. If the platform is below the specified minimum, the JavaFX initialization code throws an exception.
The minimum version is passed from the
mac.gradle
file to the Mac glass code as a pair of build time constants, which are compared at runtime to the platform version.Notes to reviewers:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jfx pull/567/head:pull/567
$ git checkout pull/567
Update a local copy of the PR:
$ git checkout pull/567
$ git pull https://git.openjdk.java.net/jfx pull/567/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 567
View PR using the GUI difftool:
$ git pr show -t 567
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jfx/pull/567.diff