Socket.java (getPort): Return 0 in error case.

2004-11-17  Michael Koch  <konqueror@gmx.de>

	* java/net/Socket.java (getPort): Return 0 in error case.

From-SVN: r90805
This commit is contained in:
Michael Koch 2004-11-17 12:08:31 +00:00 committed by Michael Koch
parent 4dbbd945e0
commit ff6e1bc0aa
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-11-17 Michael Koch <konqueror@gmx.de>
* java/net/Socket.java (getPort): Return 0 in error case.
2004-11-17 Michael Koch <konqueror@gmx.de>
* java/nio/DirectByteBufferImpl.java

View File

@ -538,7 +538,7 @@ public class Socket
// This cannot happen as we are connected.
}
return -1;
return 0;
}
/**