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
JDK-8271556: [lworld] java.lang.BootstrapMethodError in .equals() for primitive record #528
Conversation
… primitive record
|
@mlchung 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 3 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
|
The patch also works here. Just a minor stylistic suggestion where a pattern could save a few casts.
if (type instanceof MethodType) | ||
Class<?> receiverType = recordClass.isPrimitiveClass() ? recordClass.asValueType() : recordClass; | ||
|
||
if (type instanceof MethodType) { |
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.
Nitpicking: Perhaps
if (type instanceof MethodType mType) {
methodType = mType;
if (mType.parameterType(0) != receiverType) {
?
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.
sure. I may fix it in jdk repo directly.
/integrate |
Going to push as commit ad20c66.
Your commit was automatically rebased without conflicts. |
We want the default choice is to use the primary L-type mirror and only
when there is a contextual need to make a distinction, the Q-type mirror will be an option.
The proposal is to always pass the primary mirror to the
recordClass
argumentand adjust the bootstrap code to drive method handle creation off of the primitive
value type of the record class instead of
recordClass
, usingrecordClass
onlyfor getting the class name for
toString
.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/valhalla pull/528/head:pull/528
$ git checkout pull/528
Update a local copy of the PR:
$ git checkout pull/528
$ git pull https://git.openjdk.java.net/valhalla pull/528/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 528
View PR using the GUI difftool:
$ git pr show -t 528
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/valhalla/pull/528.diff