Skip to content

8383164: [lworld] javadoc updates for value class serialization#2429

Closed
dansmithcode wants to merge 1 commit into
openjdk:lworldfrom
dansmithcode:8383164
Closed

8383164: [lworld] javadoc updates for value class serialization#2429
dansmithcode wants to merge 1 commit into
openjdk:lworldfrom
dansmithcode:8383164

Conversation

@dansmithcode
Copy link
Copy Markdown
Collaborator

@dansmithcode dansmithcode commented May 13, 2026

Clarifications and cleanups for the java.io API spec related to serialization.

See also JDK-8372300, which updates the serialization specification. (The serialization specification should be regarded as the source of truth, with the API specs providing sometimes-imperfect descriptions of what it says.)



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-8383164: [lworld] javadoc updates for value class serialization (Bug - P2)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2429

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 13, 2026

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

* objects are restored by reading them from an ObjectInputStream.<br>
*
* An Externalizable object can designate a substitution object via
* An Externalizable instance can designate a substitution object via
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to say anything special about value classes and Externalizable, so I just rolled this back to its JDK form.

(A value class can choose to implement Externalizable if it wants to, but it won't be able to do anything interesting, because all its fields are immutable. There's no integrity-related reason to have special rules or discussion here.)

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 13, 2026

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

8383164: [lworld] javadoc updates for value class serialization

Reviewed-by: liach

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 11 new commits pushed to the lworld 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.

➡️ To integrate this PR with the above commit message to the lworld branch, type /integrate in a new comment.

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

mlbridge Bot commented May 13, 2026

Webrevs

Copy link
Copy Markdown
Member

@liach liach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. I can update serialization implementation to reject writing value objects with serialization.

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label May 13, 2026
@dansmithcode
Copy link
Copy Markdown
Collaborator Author

Yes, @liach, that was my next step: see if you can review the implementation and fix up any divergence from the spec. Thanks!

@dansmithcode
Copy link
Copy Markdown
Collaborator Author

/integrate

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 14, 2026

Going to push as commit 4824ac0.
Since your change was applied there have been 12 commits pushed to the lworld branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk Bot added the integrated Pull request has been integrated label May 14, 2026
@openjdk openjdk Bot closed this May 14, 2026
@openjdk openjdk Bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 14, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 14, 2026

@dansmithcode Pushed as commit 4824ac0.

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

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

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

2 participants