See the comments here https://bugs.openjdk.java.net/browse/JDK-8180410
/Michael ________________________________ From: core-libs-dev <core-libs-dev-boun...@openjdk.java.net> on behalf of Christian Ullenboom <ullenb...@gmail.com> Sent: 11 September 2018 01:18:42 To: core-libs-dev@openjdk.java.net Subject: ByteArrayOutputStream should not have a new writeBytes method in Java 11 1. There is write(byte[]) already 2. even if, it should not be byte b[] but byte[] b