anonymous wrote : 
  | The fix to this problem would be NOT to use writeUTF() but to serialize the 
Strings themselves onto the stream, but this is less efficient. 

I don't think this would change the performance at al.

Strings as specially treated on Java Serialization. The routine for serializing 
strings is basically the same as writeUTF, but considering also long buffers.

I just had to support the same thing on JBoss Serialization. 

I had a bug which I'm fixing right now. I'm writing a short, and reading back 
the same short but instead of using readUnsignedShort I was using readShort 
what would truncate the size of any string between 0xefff and 0xffff bytes 
(because of the sign bit)


Clebert 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972675#3972675

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972675
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to