On Wed, 9 Sep 2026 18:11:04 GMT, Chen Liang <[email protected]> wrote:

>> Convert uses of `@Stable` on instance final non-array fields to 
>> `@TrustFinalFields`. This gives us a better approximation for what classes 
>> we wish to migrate to strict final later, and allows the default values in 
>> these final fields to be constant folded.
>> 
>> ---------
>> - [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 six additional commits since 
> the last revision:
> 
>  - No need for blank line in KeyValueHolder
>  - Dead imports
>  - Merge branch 'master' of github.com:openjdk/jdk into 
> fix/stable-instance-final
>  - Merge branch 'master' of github.com:openjdk/jdk into 
> fix/stable-instance-final
>  - Merge branch 'master' of https://github.com/openjdk/jdk into 
> fix/stable-instance-final
>  - Remove stable from instance final non-array fields

The other conversions are intentional. These should be safe from serialization 
because they are not serializable. Arguably the ZipFile stable itself might 
have been simply decorative looking at its commit history.

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

PR Comment: https://git.openjdk.org/jdk/pull/32773#issuecomment-5700839631

Reply via email to