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
8201793: (ref) Reference object should not support cloning #6
Conversation
|
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
|
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. |
This changeset backports the fix for 8201793 to jdk8u-ri.
With this change,
java.lang.ref.Reference::clone
method always throwsCloneNotSupportedException
.Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk8u-ri pull/6/head:pull/6
$ git checkout pull/6
Update a local copy of the PR:
$ git checkout pull/6
$ git pull https://git.openjdk.java.net/jdk8u-ri pull/6/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6
View PR using the GUI difftool:
$ git pr show -t 6
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk8u-ri/pull/6.diff