Skip to content

Commit

Permalink
Fix error when compiled jdk9 and run with jdk8
Browse files Browse the repository at this point in the history
修复当使用jdk9编译的class运行于jdk8时buf.clear()错误的问题  plasma-umass/doppio#497
  • Loading branch information
XinRoom committed May 27, 2021
1 parent e56e524 commit f52bfc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/tunnel.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
System.arraycopy(buf.array(), 0, data, 0, bytesRead);
out.write(b64en(data));
out.flush();
buf.clear();
((java.nio.Buffer)buf).clear();
bytesRead = socketChannel.read(buf);
}
response.setHeader("X-STATUS", "OK");
Expand Down

0 comments on commit f52bfc0

Please sign in to comment.