[cp-patches] Patch: FYI: PR 31626

Tom Tromey tromey at redhat.com
Thu Apr 19 20:21:01 UTC 2007


I'm checking this in on the gcc trunk, the RH 4.1 branch, and
Classpath.

This is a patch from Casey to fix PR 31626.  The bug here is that we
are missing a method that Mylar uses.

Tom

Index: ChangeLog
from  Casey Marshall  <csm at gnu.org>

	PR classpath/31626:
	* gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java
	(createSocket): New method.

Index: gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java
===================================================================
--- gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java	(revision 123959)
+++ gnu/javax/net/ssl/provider/SSLSocketFactoryImpl.java	(working copy)
@@ -132,4 +132,12 @@
     socket.connect(new InetSocketAddress(host, port));
     return socket;
   }
+
+  /* (non-Javadoc)
+   * @see javax.net.SocketFactory#createSocket()
+   */
+  @Override public Socket createSocket() throws IOException
+  {
+    return new SSLSocketImpl(contextImpl, null, -1, new Socket(), true);
+  }
 }



More information about the Classpath-patches mailing list