On Fri, 8 May 2026 15:39:53 GMT, Anthony Scarpino <[email protected]> wrote:

>> src/java.base/share/classes/java/security/PEM.java line 139:
>> 
>>> 137:             leadingData, "leadingData cannot be null").clone();
>>> 138:         final var l = this.leadingData;
>>> 139:         CleanerFactory.cleaner().register(this, () -> 
>>> KeyUtil.clear(l));
>> 
>> Do we need to clear `l`?
>
> `l` is pointing to the array.  They are the same.

I can remove this I suppose.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29640#discussion_r3238046076

Reply via email to