-
Notifications
You must be signed in to change notification settings - Fork 555
8264138: Replace uses of Class.newInstance #491
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
Conversation
|
👋 Welcome back aghaisas! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
Found and replaced deprecated Class.newInstance() instances in apps and unit tests. |
kevinrushforth
left a comment
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 left a couple comments (in tests), where the replacement code isn't equivalent.
...afx.controls/src/test/java/test/javafx/scene/control/cell/ParameterisedPrebuiltCellTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/test/java/test/com/sun/javafx/test/binding/ReflectionHelper.java
Show resolved
Hide resolved
| throw constructLoadException(exception); | ||
| value = type.getDeclaredConstructor().newInstance(); | ||
| } catch (Exception e) { | ||
| throw constructLoadException(e); |
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.
This isn't quite equivalent, since it will now wrap a RuntimeException in a LoadException, but I think that's OK in this case.
|
@aghaisas 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 5 new commits 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 |
|
@aghaisas Since your change was applied there have been 13 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 4619cdd. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR replaces Class.newInstance() deprecated method with Contructor.newinstance().
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jfx pull/491/head:pull/491$ git checkout pull/491Update a local copy of the PR:
$ git checkout pull/491$ git pull https://git.openjdk.java.net/jfx pull/491/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 491View PR using the GUI difftool:
$ git pr show -t 491Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jfx/pull/491.diff