* gnu/java/nio/SocketChannelImpl.java
(read): Made check for blocking un-ambiguous.
Removed wrong check for data array length.
From-SVN: r91028
+2004-11-22 Michael Koch <konqueror@gmx.de>
+
+ * gnu/java/nio/SocketChannelImpl.java
+ (read): Made check for blocking un-ambiguous.
+ Removed wrong check for data array length.
+
2004-11-21 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SocketChannelImpl.java
int available = input.available();
int len = dst.capacity() - dst.position();
- if (! isBlocking() && available == 0)
+ if ((! isBlocking()) && available == 0)
return 0;
- if (len > available)
- len = available;
-
if (dst.hasArray())
{
offset = dst.arrayOffset() + dst.position();