--- old/src/java.base/share/classes/sun/nio/cs/StreamEncoder.java 2018-09-28 11:30:39.685908797 +0700 +++ new/src/java.base/share/classes/sun/nio/cs/StreamEncoder.java 2018-09-28 11:30:39.293908797 +0700 @@ -108,12 +108,12 @@ } public void write(int c) throws IOException { - char cbuf[] = new char[1]; + char[] cbuf = new char[1]; cbuf[0] = (char) c; write(cbuf, 0, 1); } - public void write(char cbuf[], int off, int len) throws IOException { + public void write(char[] cbuf, int off, int len) throws IOException { synchronized (lock) { ensureOpen(); if ((off < 0) || (off > cbuf.length) || (len < 0) || @@ -130,7 +130,7 @@ /* Check the len before creating a char buffer */ if (len < 0) throw new IndexOutOfBoundsException(); - char cbuf[] = new char[len]; + char[] cbuf = new char[len]; str.getChars(off, off + len, cbuf, 0); write(cbuf, 0, len); } @@ -274,7 +274,7 @@ haveLeftoverChar = false; } - void implWrite(char cbuf[], int off, int len) + void implWrite(char[] cbuf, int off, int len) throws IOException { CharBuffer cb = CharBuffer.wrap(cbuf, off, len);