8203614: Java API SSLEngine example code needs correction
authorjnimeh
Fri, 17 Aug 2018 21:36:02 -0700
changeset 51440 a1aaf68b119d
parent 51439 0517bd2a0eda
child 51441 2e91d927e00c
8203614: Java API SSLEngine example code needs correction Reviewed-by: wetmore, ascarpino
src/java.base/share/classes/javax/net/ssl/SSLEngine.java
--- a/src/java.base/share/classes/javax/net/ssl/SSLEngine.java	Fri Aug 17 14:50:59 2018 -0700
+++ b/src/java.base/share/classes/javax/net/ssl/SSLEngine.java	Fri Aug 17 21:36:02 2018 -0700
@@ -237,7 +237,7 @@
  *   BUFFER_UNDERFLOW:
  *       int netSize = engine.getSession().getPacketBufferSize();
  *       // Resize buffer if needed.
- *       if (netSize > dst.capacity()) {
+ *       if (netSize > src.capacity()) {
  *           ByteBuffer b = ByteBuffer.allocate(netSize);
  *           src.flip();
  *           b.put(src);