On Thu, 2 Jul 2026 14:19:18 GMT, Chen Liang <[email protected]> wrote:

>> Make sure object-writing serialization fails for "strict in serializable 
>> super". We currently already fail when they are deserialized.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Chen Liang has updated the pull request with a new target base due to a merge 
> or a rebase. The incremental webrev excludes the unrelated changes brought in 
> by the merge/rebase. The pull request contains four additional commits since 
> the last revision:
> 
>  - Review comments, a few more cases
>  - Merge branch 'lworld' of https://github.com/openjdk/valhalla into 
> fix/lw-ser-strict-in-super
>  - Another case
>  - Make sure serialization fails for "strict in serializable super"

Pushed an update addresssing comments.

For @jaikiran's concerns, I introduced `StrictInTwiceSuper` which has the same 
hierarchy as `Identity` in his example, where the strict declaration is in the 
two-level superclass from the class being serialized.

-------------

PR Comment: https://git.openjdk.org/valhalla/pull/2612#issuecomment-4866771408

Reply via email to