--- old/src/java.base/share/classes/sun/net/www/http/ChunkedOutputStream.java 2018-09-28 11:30:30.881908797 +0700 +++ new/src/java.base/share/classes/sun/net/www/http/ChunkedOutputStream.java 2018-09-28 11:30:30.461908797 +0700 @@ -42,7 +42,7 @@ private static final int EMPTY_CHUNK_HEADER_SIZE = getHeaderSize(0); /* internal buffer */ - private byte buf[]; + private byte[] buf; /* size of data (excluding footers and headers) already stored in buf */ private int size; /* current index in buf (i.e. buf[count] */ @@ -197,7 +197,7 @@ * The size of the data is of course smaller than preferredChunkSize. */ @Override - public synchronized void write(byte b[], int off, int len) { + public synchronized void write(byte[] b, int off, int len) { ensureOpen(); if ((off < 0) || (off > b.length) || (len < 0) || ((off + len) > b.length) || ((off + len) < 0)) { @@ -260,7 +260,7 @@ @Override public synchronized void write(int _b) { - byte b[] = {(byte)_b}; + byte[] b = {(byte)_b}; write(b, 0, 1); }