On Tue, 18 May 2021 17:24:13 GMT, Valerie Peng <valer...@openjdk.org> wrote:

>> Anthony Scarpino has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   cleanup
>
> src/java.base/share/classes/com/sun/crypto/provider/GHASH.java line 189:
> 
>> 187:             ct.position(ct.position());
>> 188:             return processed;
>> 189:         } else if (!ct.isReadOnly()) {
> 
> Maybe you meant "ct.hasArray()" instead of "!ct.isReadOnly()"?

hasArray() checks both isReadonly() and isDirect().  Since I already did 
isDirect() in the previous if, I just need to check readonly here

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

PR: https://git.openjdk.java.net/jdk/pull/4072

Reply via email to