On Thu, 12 Nov 2020 16:34:30 GMT, Anthony Scarpino <ascarp...@openjdk.org> wrote:
>> 8253821: Improve ByteBuffer performance with GCM > > Anthony Scarpino has updated the pull request incrementally with one > additional commit since the last revision: > > Code review comment update > Major change to test to detect corruption with incremental buffers test src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java line 777: > 775: if ((src.remaining() + ((ibuffer != null) ? ibuffer.size() : 0) - > 776: tagLenBytes) > dst.remaining()) { > 777: throw new RuntimeException("output buffer too small"); Shouldn't this be ShortBufferException instead of RuntimeException? ------------- PR: https://git.openjdk.java.net/jdk/pull/411