Integrated: 8355379: Annotate lazy fields in java.security @Stable
Koushik Muthukrishnan Thirupattur
duke at openjdk.org
Wed Aug 6 06:43:07 UTC 2025
On Fri, 23 May 2025 04:54:26 GMT, Koushik Muthukrishnan Thirupattur <duke at openjdk.org> wrote:
> Several classes in the `java.security` package lazily compute their hash value and store it in a field. These fields can typically be annotated with the `@Stable` annotation. Many of the current implementations are using -1 as a flag for not computed, this needs to be refactored away.
>
> Here are some examples of such classes: PKCS12Attribute and URICertStoreParameters.
This pull request has now been integrated.
Changeset: ca416445
Author: Koushik Thirupattur <koushik.thirupattur at oracle.com>
Committer: Per Minborg <pminborg at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ca41644538c7cba3e2f50b11c5045cf2aa595f7f
Stats: 118 lines in 4 files changed: 103 ins; 1 del; 14 mod
8355379: Annotate lazy fields in java.security @Stable
Reviewed-by: pminborg
-------------
PR: https://git.openjdk.org/jdk/pull/25405
More information about the security-dev
mailing list