Repository navigation
8394468: Compiler Bug "Invalid pool entry" - #33555
dev-jonghoonpark wants to merge 2 commits into
Conversation
Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
|
👋 Welcome back dev-jonghoonpark! A progress list of the required criteria for merging this PR into |
|
@dev-jonghoonpark 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 /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 20 new commits pushed to the
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 (@lahodaj) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@dev-jonghoonpark The following label will be automatically applied to this pull request:
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. |
Webrevs
|
lahodaj
left a comment
There was a problem hiding this comment.
The fix seems sensible to me. But I would suggest to enhance the test, and also run the resulting class and verify behavior. Thanks!
Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
lahodaj
left a comment
There was a problem hiding this comment.
Looks good to me, thanks!
|
/integrate |
|
@dev-jonghoonpark |
|
/sponsor |
|
Going to push as commit a0340ff.
Your commit was automatically rebased without conflicts. |
|
@lahodaj @dev-jonghoonpark Pushed as commit a0340ff. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR fixes a bug caused by the workaround introduced in JDK-6587674.
Problem
When a constant conditional expression is folded and the remaining expression (the
nullliteral) has typeBOT,convert()skips the cast because of the BOT check added in JDK-6587674. As a result, the static type of the conditional expression (String) is lost.Fix
The workaround in JDK-6587674 was meant to avoid
convert()casting to the type of a discarded class. That case no longer occurs after JDK-8314621: noClassDefIn prevents a constant condition from being folded when the discarded branch contains a class declaration, so the type of a discarded class can no longer reachconvert()as pt.This PR therefore removes the workaround, changing
to
in
convert().Testing
langtools_javactests pass.tier1tests pass.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/33555/head:pull/33555$ git checkout pull/33555Update a local copy of the PR:
$ git checkout pull/33555$ git pull https://git.openjdk.org/jdk.git pull/33555/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 33555View PR using the GUI difftool:
$ git pr show -t 33555Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/33555.diff
Using Webrev
Link to Webrev Comment