changeset 51440:a1aaf68b119d

8203614: Java API SSLEngine example code needs correction Reviewed-by: wetmore, ascarpino
author jnimeh
date Fri, 17 Aug 2018 21:36:02 -0700
parents 0517bd2a0eda
children 2e91d927e00c
files src/java.base/share/classes/javax/net/ssl/SSLEngine.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);