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 src/java.base/share/classes/java/lang/invoke/MethodType.java line 140: > 138: > 139: // The rtype and ptypes fields define the structural identity of the > method type: > 140: private final Class<?> rtype; Why is @Stable removed here? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/32773#discussion_r3990827358
