--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http2Connection.java Thu Feb 01 16:12:28 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http2Connection.java Mon Feb 05 11:53:05 2018 +0000
@@ -1271,8 +1271,8 @@
* Thrown when https handshake negotiates http/1.1 alpn instead of h2
*/
static final class ALPNException extends IOException {
- private static final long serialVersionUID = 23138275393635783L;
- final AbstractAsyncSSLConnection connection;
+ private static final long serialVersionUID = 0L;
+ final transient AbstractAsyncSSLConnection connection;
ALPNException(String msg, AbstractAsyncSSLConnection connection) {
super(msg);
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/PlainTunnelingConnection.java Thu Feb 01 16:12:28 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/PlainTunnelingConnection.java Mon Feb 05 11:53:05 2018 +0000
@@ -47,7 +47,7 @@
final PlainHttpConnection delegate;
final HttpHeaders proxyHeaders;
- protected final InetSocketAddress proxyAddr;
+ final InetSocketAddress proxyAddr;
private volatile boolean connected;
protected PlainTunnelingConnection(InetSocketAddress addr,
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/frame/GoAwayFrame.java Thu Feb 01 16:12:28 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/frame/GoAwayFrame.java Mon Feb 05 11:53:05 2018 +0000
@@ -40,7 +40,7 @@
public GoAwayFrame(int lastStream, int errorCode, byte[] debugData) {
super(0, 0, errorCode);
this.lastStream = lastStream;
- this.debugData = debugData;
+ this.debugData = debugData.clone();
}
@Override
@@ -63,7 +63,7 @@
}
public byte[] getDebugData() {
- return debugData;
+ return debugData.clone();
}
}
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/frame/PingFrame.java Thu Feb 01 16:12:28 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/frame/PingFrame.java Mon Feb 05 11:53:05 2018 +0000
@@ -38,7 +38,7 @@
public PingFrame(int flags, byte[] data) {
super(0, flags);
assert data.length == 8;
- this.data = data;
+ this.data = data.clone();
}
@Override
@@ -61,7 +61,7 @@
}
public byte[] getData() {
- return data;
+ return data.clone();
}
}