RFR: 8355379: Annotate lazy fields in java.security @Stable [v4]

Koushik Muthukrishnan Thirupattur duke at openjdk.org
Tue Aug 5 22:43:04 UTC 2025


On Tue, 5 Aug 2025 08:00:03 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> Koushik Muthukrishnan Thirupattur has updated the pull request incrementally with three additional commits since the last revision:
>> 
>>  - 8355379: Annotate lazy fields in java.security @Stable
>>  - 8355379: Annotate lazy fields in java.security @Stable
>>  - 8355379: Annotate lazy fields in java.security @Stable
>
> src/java.base/share/classes/java/security/PKCS12Attribute.java line 50:
> 
>> 48:     private String value;
>> 49:     private final byte[] encoded;
>> 50: 
> 
> The fields `name`, `value`, and `encoded` can also be marked `@Stable` with appropriate changes (e.g., making the fields `final` and setting them to `null` in the constructor that only takes an array). I think we should do this under a separate issue.
> 
> Similar for the other class in this PR.

https://bugs.openjdk.org/browse/JDK-8364779

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25405#discussion_r2255479469


More information about the security-dev mailing list