-
Notifications
You must be signed in to change notification settings - Fork 92
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
8322477: order of subclasses in the permits clause can differ between compilations #310
Conversation
👋 Welcome back goetz! 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. |
Webrevs
|
I am surprised we have indenting conflicts. Shouldn't we do the backport of https://bugs.openjdk.org/browse/JDK-8319987 first? |
GHA failure: Well known Risk-V build issue. Unrelated. |
Hi, |
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 basically good. Only one minor thing below. https://bugs.openjdk.org/browse/JDK-8319987 would only resolve one trivial diff. Is that planned to be backported for 21.0.4, too? If nobody wants to backport that one very soon, I don't think we have to wait.
@@ -5492,7 +5492,7 @@ void attribClass(ClassSymbol c) throws CompletionFailure { | |||
|
|||
if (!c.type.isCompound()) { | |||
for (ClassSymbol supertypeSym : sealedSupers) { | |||
if (!supertypeSym.permitted.contains(c.type.tsym)) { | |||
if (!supertypeSym.isPermittedSubclass(c.type.tsym)) { |
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.
Indentation is off by one.
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.
Thanks for the review. Fixed.
|
GHA failure: Risc-V compile issue, unrelated. |
@GoeLin 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 /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 13 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. ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit d4823c2.
Your commit was automatically rebased without conflicts. |
I backport this for parity with 21.0.4-oracle.
src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
I had to resolve because indentation is different. Changed coding is the same.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/310/head:pull/310
$ git checkout pull/310
Update a local copy of the PR:
$ git checkout pull/310
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/310/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 310
View PR using the GUI difftool:
$ git pr show -t 310
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/310.diff
Webrev
Link to Webrev Comment