-
Notifications
You must be signed in to change notification settings - Fork 7
8201793: (ref) Reference object should not support cloning #6
Conversation
|
👋 Welcome back poonam! A progress list of the required criteria for merging this PR into |
|
This backport pull request has now been updated with issue from the original commit. |
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.
Looks good. The only diff from the original fix is @since 8 as this is for 8u RI.
|
@poonamparhar This change now passes all automated pre-integration checks. 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
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.
Looks good.
| * @returns never returns normally | ||
| * @throws CloneNotSupportedException always | ||
| * | ||
| * @since 8 |
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 method is only present in JDK 8u42 (RI) and 8u352 and later releases. It's not in existing 8u releases >= 8u45 and < 8u352. Neither 8 or 8u42 would cause confusion. A suggestion is to use @apiNote to indicate which MR this method is defined:
@apiNote This method is defined in Java SE 8 Maintenance Release 4.
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.
The proposed @apinote looks good.
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.
The proposed spec changes look good with the addition of the proposed @APinote.
| * @returns never returns normally | ||
| * @throws CloneNotSupportedException always | ||
| * | ||
| * @since 8 |
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.
The proposed @apinote looks good.
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.
Updated @APinote looks good.
|
/integrate |
|
Going to push as commit 58ec25d. |
|
@poonamparhar Pushed as commit 58ec25d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This changeset backports the fix for 8201793 to jdk8u-ri.
With this change,
java.lang.ref.Reference::clonemethod always throwsCloneNotSupportedException.Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk8u-ri pull/6/head:pull/6$ git checkout pull/6Update a local copy of the PR:
$ git checkout pull/6$ git pull https://git.openjdk.java.net/jdk8u-ri pull/6/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6View PR using the GUI difftool:
$ git pr show -t 6Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk8u-ri/pull/6.diff