Skip to content

8382556: [lworld] newConstructorForSerialization should not bypass strict init#2350

Open
liach wants to merge 3 commits into
openjdk:lworldfrom
liach:fix/reflect-factory-strict
Open

8382556: [lworld] newConstructorForSerialization should not bypass strict init#2350
liach wants to merge 3 commits into
openjdk:lworldfrom
liach:fix/reflect-factory-strict

Conversation

@liach
Copy link
Copy Markdown
Member

@liach liach commented Apr 21, 2026

ReflectionFactory.newConstructorForSerializatoin might bypass strict initialization. We should make sure the skipped classes in the constructor chain do not declare strict instance fields.

This updates the specification of jdk.unsupported's ReflectionFactory to reflect this behavioral update.



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JDK-8382556: [lworld] newConstructorForSerialization should not bypass strict init (Bug - P3)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2350/head:pull/2350
$ git checkout pull/2350

Update a local copy of the PR:
$ git checkout pull/2350
$ git pull https://git.openjdk.org/valhalla.git pull/2350/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2350

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2350.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Apr 21, 2026

👋 Welcome back liach! A progress list of the required criteria for merging this PR into lworld will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 21, 2026

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

@openjdk openjdk Bot added the rfr Pull request is ready for review label Apr 21, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Apr 21, 2026

Webrevs

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

Labels

rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant