This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Regards, dave
-- Dave Carnal Director of Engineering, NetFuel, Inc. +1-847.708.1560 dave@netfuel.com
> cvs diff -u ObjectInputStream.java Index: ObjectInputStream.java =================================================================== RCS file: /cvsroot/gcc/gcc/libjava/java/io/ObjectInputStream.java,v retrieving revision 1.38 diff -u -r1.38 ObjectInputStream.java --- ObjectInputStream.java 25 Nov 2004 03:47:01 -0000 1.38 +++ ObjectInputStream.java 8 Feb 2005 19:34:35 -0000 @@ -292,6 +292,7 @@
boolean oldmode = this.readDataFromBlock; @@ -300,9 +301,13 @@
+ if (read_from_blocks)
+ // Read TC_ENDBLOCKDATA !
+ this.realInputStream.readByte()
+
if (read_from_blocks)
setBlockDataMode(oldmode);
-
+
ret_val = processResolution(osc, obj, handle);
break;
} // end if (osc.realClassIsExternalizable)
@@ -905,7 +910,9 @@
{
if (this.readDataFromBlock)
{
- if (this.blockDataPosition + length > this.blockDataBytes)
+ int total = 0;
+
+ while (this.blockDataPosition + length > this.blockDataBytes)
{
int remain = this.blockDataBytes - this.blockDataPosition;
if (remain != 0)
@@ -914,6 +921,7 @@
data, offset, remain);
offset += remain;
length -= remain;
+ total += remain;
}
readNextBlock ();
}
@@ -922,7 +930,9 @@
data, offset, length);
this.blockDataPosition += length;- return length;
+ total += length;
+
+ return total;
}
else
return this.realInputStream.read(data, offset, length);Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |