DataOutputStream (write (byte[], int, int)): Update "written" correctly.
* java/io/DataOutputStream (write (byte[], int, int)): Update "written" correctly. Fix from the ORP team. From-SVN: r48050
This commit is contained in:
parent
f79a65c087
commit
1e2bba3565
2 changed files with 6 additions and 1 deletions
|
@ -48,7 +48,7 @@ public class DataOutputStream extends FilterOutputStream implements DataOutput
|
|||
throws IOException, NullPointerException, IndexOutOfBoundsException
|
||||
{
|
||||
out.write(b, off, len);
|
||||
written += len - off;
|
||||
written += len;
|
||||
}
|
||||
|
||||
public final void writeBoolean (boolean v) throws IOException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue