Skip to content
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

8274347: Passing a *nested* switch expression as a parameter causes an NPE during compile #196

Closed
wants to merge 1 commit into from
Closed

8274347: Passing a *nested* switch expression as a parameter causes an NPE during compile #196

wants to merge 1 commit into from

Conversation

@kvergizova
Copy link
Contributor

@kvergizova kvergizova commented Oct 15, 2021

I'd like to backport this fix to 17u. It fixes regression in javac introduced in jdk17.
The patch applies cleanly.
Tested with langtools tests, updated tests fail without the patch, pass with it.


Progress

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

Issue

  • JDK-8274347: Passing a nested switch expression as a parameter causes an NPE during compile

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 196

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

Using diff file

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

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented Oct 15, 2021

👋 Welcome back evergizova! 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.

Loading

@openjdk openjdk bot changed the title Backport b870468bdc99938fbb19a41b0ede0a3e3769ace2 8274347: Passing a *nested* switch expression as a parameter causes an NPE during compile Oct 15, 2021
@openjdk
Copy link

@openjdk openjdk bot commented Oct 15, 2021

This backport pull request has now been updated with issue from the original commit.

Loading

@openjdk
Copy link

@openjdk openjdk bot commented Oct 15, 2021

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

8274347: Passing a *nested* switch expression as a parameter causes an NPE during compile

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

  • 8cb9634: 8275049: [ZGC] missing null check in ZNMethod::log_register
  • 451611f: 8274401: C2: GraphKit::load_array_element bypasses Access API
  • 61a56e3: 8274770: [PPC64] resolve_jobject needs a generic implementation to support load barriers
  • b0e49bb: 8271855: [TESTBUG] Wrong weakCompareAndSet assumption in UnsafeIntrinsicsTest
  • 8b62d54: 8274550: c2i entry barriers read int as long on PPC
  • 6dbb3d0: 8274773: [TESTBUG] UnsafeIntrinsicsTest intermittently fails on weak memory model platform
  • efdf411: 8272720: Fix the implementation of loop unrolling heuristic with LoopPercentProfileLimit
  • ddb89c3: 8275131: Exceptions after a touchpad gesture on macOS
  • 01f4883: 8275051: Shenandoah: Correct ordering of requested gc cause and gc request flag
  • 9751b8f: 8273614: Shenandoah: intermittent timeout with ConcurrentGCBreakpoint tests

Please see this link for an up-to-date comparison between the source branch of this pull request and 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.

➡️ 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).

Loading

@mlbridge
Copy link

@mlbridge mlbridge bot commented Oct 15, 2021

Webrevs

Loading

@kvergizova
Copy link
Contributor Author

@kvergizova kvergizova commented Oct 18, 2021

/integrate

Loading

@openjdk openjdk bot added the sponsor label Oct 18, 2021
@openjdk
Copy link

@openjdk openjdk bot commented Oct 18, 2021

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

Loading

@yan-too
Copy link

@yan-too yan-too commented Oct 18, 2021

/sponsor

Loading

@openjdk
Copy link

@openjdk openjdk bot commented Oct 18, 2021

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

  • 6081dca: 8273234: extended 'for' with expression of type tvar causes the compiler to crash
  • 8cb9634: 8275049: [ZGC] missing null check in ZNMethod::log_register
  • 451611f: 8274401: C2: GraphKit::load_array_element bypasses Access API
  • 61a56e3: 8274770: [PPC64] resolve_jobject needs a generic implementation to support load barriers
  • b0e49bb: 8271855: [TESTBUG] Wrong weakCompareAndSet assumption in UnsafeIntrinsicsTest
  • 8b62d54: 8274550: c2i entry barriers read int as long on PPC
  • 6dbb3d0: 8274773: [TESTBUG] UnsafeIntrinsicsTest intermittently fails on weak memory model platform
  • efdf411: 8272720: Fix the implementation of loop unrolling heuristic with LoopPercentProfileLimit
  • ddb89c3: 8275131: Exceptions after a touchpad gesture on macOS
  • 01f4883: 8275051: Shenandoah: Correct ordering of requested gc cause and gc request flag
  • ... and 1 more: https://git.openjdk.java.net/jdk17u/compare/aabc4ba0eef9e47fc547b4ec91153a9427acd968...master

Your commit was automatically rebased without conflicts.

Loading

@openjdk
Copy link

@openjdk openjdk bot commented Oct 18, 2021

@yan-too @kvergizova Pushed as commit ee02c64.

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

Loading

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