Skip to content

8375571: Compiler crash when using record pattern matching with a generic type parameter shadowing a record class - #3003

Open
xiezhaokun wants to merge 1 commit into
openjdk:masterfrom
xiezhaokun:backport-xiezhaokun-9fef14a6-master
Open

8375571: Compiler crash when using record pattern matching with a generic type parameter shadowing a record class#3003
xiezhaokun wants to merge 1 commit into
openjdk:masterfrom
xiezhaokun:backport-xiezhaokun-9fef14a6-master

Conversation

@xiezhaokun

@xiezhaokun xiezhaokun commented Aug 10, 2026

Copy link
Copy Markdown
Member

Backport 8375571, JEP 455 was not included in JDK 21; the javac compilation output in test/langtools/tools/javac/patterns/DeconstructionPatternErrors.out requires adjustment.

Test tier1tier2, all cases passed.



Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • JDK-8375571 needs maintainer approval
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8375571: Compiler crash when using record pattern matching with a generic type parameter shadowing a record class (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/3003/head:pull/3003
$ git checkout pull/3003

Update a local copy of the PR:
$ git checkout pull/3003
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/3003/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3003

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/3003.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Aug 10, 2026

Copy link
Copy Markdown

👋 Welcome back zxie! 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 commented Aug 10, 2026

Copy link
Copy Markdown

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk Bot changed the title Backport 9fef14a6d3124fae3ad8b24dac5103aa611d4edb 8375571: Compiler crash when using record pattern matching with a generic type parameter shadowing a record class Aug 10, 2026
@openjdk

openjdk Bot commented Aug 10, 2026

Copy link
Copy Markdown

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

@openjdk openjdk Bot added backport Port of a pull request already in a different code base rfr Pull request is ready for review labels Aug 10, 2026
@mlbridge

mlbridge Bot commented Aug 10, 2026

Copy link
Copy Markdown

Webrevs

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

Labels

backport Port of a pull request already in a different code base rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant