https://bugs.openjdk.java.net/browse/JDK-8196854 http://cr.openjdk.java.net/~coffeys/webrev.8196854/webrev/
The buf array was never required and I've verified that the original 8189789 issue can still be reproduced with a buggy JDK.
-- Regards, Sean.