8203614: Java API SSLEngine example code needs correction
Reviewed-by: wetmore, ascarpino
--- 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);