natPlainSocketImplPosix.cc (create): Return if already created.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233406
	* gnu/java/net/natPlainSocketImplPosix.cc (create): Return if
	already created.
	* gnu/java/net/PlainSocketImpl.java (getLocalAddress): Handle case
	where localport is -1.
	(create): Now public.
	* gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Call
	'create' on the socket.

From-SVN: r123440
This commit is contained in:
Tom Tromey 2007-04-02 22:10:41 +00:00 committed by Tom Tromey
parent c8bbabf282
commit c44cc446f7
10 changed files with 21 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/* SocketChannelImpl.java --
Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
Copyright (C) 2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@ -71,6 +71,7 @@ public final class SocketChannelImpl extends SocketChannel
{
super (provider);
impl = new PlainSocketImpl();
impl.create(true);
socket = new NIOSocket (impl, this);
configureBlocking(true);
}