On Tue, 2 Dec 2025 20:28:50 GMT, Koushik Muthukrishnan Thirupattur 
<[email protected]> wrote:

> The implementation of JarEntry.getCodeSigners() and getCertificates() both 
> return a copy of the original array. However, the documentation of these 2 
> methods currently doesn't specify this.

I don't think we need to go this far as to add a new paragraph. Looking at 
examples like `Class::getMethods`, I think we can just change the first 
sentences of "Returns the ... objects" to "Returns an array containing the ... 
objects", which means the returned array is not the same as the underlying 
storage format.

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

PR Comment: https://git.openjdk.org/jdk/pull/28615#issuecomment-3604141759

Reply via email to