Add "SHA-384" as a known attribute

Jaikiran Pai jai.forums2013 at gmail.com
Fri Apr 4 16:55:04 UTC 2025


Since this is about caching values in the java.util.jar.Attributes 
class, the discussion is more appropriate in the core-libs-dev mailing 
list. I've added it to the "To" now and "Bcc"ed the jdk-dev mailing 
list. Please subscribe to core-libs-dev 
https://mail.openjdk.org/mailman/listinfo/core-libs-dev if you haven't 
already and we can continue the discussion there.

-Jaikiran

On 04/04/25 8:54 pm, Ayman wrote:
> Hello,
>
> Starting from JDK 19, SHA-384 is replacing SHA-256 as the default 
> digest algorithm in the jarsigner: 
> https://bugs.openjdk.org/browse/JDK-8283475
>
> This means that the string "SHA-384" is now written multiples times is 
> the MANIFEST files, this has been tackled in the past by adding the 
> string "SHA-256" as a KNOWN_NAME that shouldn't be duplicated in 
> memory: 
> https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/util/jar/Attributes.java#L729 
>
>
> Is it possible to do the same with "SHA-384"?
>
> Thanks,


More information about the core-libs-dev mailing list