Skip to content

Conversation

@stsypanov
Copy link
Contributor

@stsypanov stsypanov commented Oct 15, 2021

It looks like we cannot use Long.hashCode(long) for java.rmi.server.ObjID.hashCode() due to specification: https://docs.oracle.com/en/java/javase/17/docs/api/java.rmi/java/rmi/server/ObjID.html#hashCode().


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8275293: A change done with JDK-8268764 mismatches the java.rmi.server.ObjID.hashCode spec

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5963/head:pull/5963
$ git checkout pull/5963

Update a local copy of the PR:
$ git checkout pull/5963
$ git pull https://git.openjdk.java.net/jdk pull/5963/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 5963

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5963.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 15, 2021

👋 Welcome back stsypanov! 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 openjdk bot added the rfr Pull request is ready for review label Oct 15, 2021
@stsypanov
Copy link
Contributor Author

@stuart-marks FYI

@openjdk
Copy link

openjdk bot commented Oct 15, 2021

@stsypanov The following label will be automatically applied to this pull request:

  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the core-libs core-libs-dev@openjdk.org label Oct 15, 2021
@mlbridge
Copy link

mlbridge bot commented Oct 15, 2021

Webrevs

@pavelrappo
Copy link
Member

It's important to be precise here: it's not "JavaDoc", it's the specification.

@stsypanov
Copy link
Contributor Author

@pavelrappo you are right. I've reworded the description

@openjdk
Copy link

openjdk bot commented Oct 15, 2021

⚠️ @stsypanov the full name on your profile does not match the author name in this pull requests' HEAD commit. If this pull request gets integrated then the author name from this pull requests' HEAD commit will be used for the resulting commit. If you wish to push a new commit with a different author name, then please run the following commands in a local repository of your personal fork:

$ git checkout 8275293
$ git commit -c user.name='Preferred Full Name' --allow-empty -m 'Update full name'
$ git push

@openjdk
Copy link

openjdk bot commented Oct 15, 2021

@stsypanov 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:

8275293: A change done with JDK-8268764 mismatches the java.rmi.server.ObjID.hashCode spec

Reviewed-by: rriggs, smarks

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 123 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@RogerRiggs, @stuart-marks) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 15, 2021
@stsypanov
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Oct 15, 2021
@openjdk
Copy link

openjdk bot commented Oct 15, 2021

@stsypanov
Your change (at version b5c2ad0) is now ready to be sponsored by a Committer.

@stuart-marks
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Oct 23, 2021

Going to push as commit 5bbe4ca.
Since your change was applied there have been 123 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Oct 23, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Oct 23, 2021
@openjdk
Copy link

openjdk bot commented Oct 23, 2021

@stuart-marks @stsypanov Pushed as commit 5bbe4ca.

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

@stsypanov stsypanov deleted the 8275293 branch October 24, 2021 20:18
@mrserb
Copy link
Member

mrserb commented Oct 26, 2021

Just a suggestion, it is always a good thing to add a jtreg test case, especially if it is regression.

@stuart-marks
Copy link
Member

Oh yes, good point in general. In this case the problem was caught by the failure of a JCK test, so I don't think a separate regression test is necessary. I've added the noreg-jck label to the bug to indicate this.

@mrserb
Copy link
Member

mrserb commented Oct 26, 2021

I think this one was missed due to the absence of the coverage in the jtreg test suite, and some people have no access to the jck to run it in advance.

@mlbridge
Copy link

mlbridge bot commented Oct 26, 2021

Mailing list message from Joseph D. Darcy on core-libs-dev:

It is a non-goal to replicate all of the JCK test coverage in the
regression test suite.

-Joe

On 10/25/2021 7:17 PM, Sergey Bylokhov wrote:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-libs core-libs-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

5 participants