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:
parent
4dbbd945e0
commit
ff6e1bc0aa
@ -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
|
||||
|
@ -538,7 +538,7 @@ public class Socket
|
||||
// This cannot happen as we are connected.
|
||||
}
|
||||
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user