8383164: [lworld] javadoc updates for value class serialization#2429
8383164: [lworld] javadoc updates for value class serialization#2429dansmithcode wants to merge 1 commit into
Conversation
|
👋 Welcome back dlsmith! A progress list of the required criteria for merging this PR into |
| * 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 |
There was a problem hiding this comment.
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.)
|
@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: 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
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 |
liach
left a comment
There was a problem hiding this comment.
Looks fine to me. I can update serialization implementation to reject writing value objects with serialization.
|
Yes, @liach, that was my next step: see if you can review the implementation and fix up any divergence from the spec. Thanks! |
|
/integrate |
|
Going to push as commit 4824ac0.
Your commit was automatically rebased without conflicts. |
|
@dansmithcode Pushed as commit 4824ac0. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
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
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2429/head:pull/2429$ git checkout pull/2429Update a local copy of the PR:
$ git checkout pull/2429$ git pull https://git.openjdk.org/valhalla.git pull/2429/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2429View PR using the GUI difftool:
$ git pr show -t 2429Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2429.diff
Using Webrev
Link to Webrev Comment