JDK-4217676 : should be able to serialize strings > 64K
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io:serialization
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_2.5
  • CPU: sparc
  • Submitted: 1999-03-05
  • Updated: 2013-11-14
  • Resolved: 1999-06-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.3.0 betaFixed
Related Reports
Relates :  
Relates :  
Description
Object serialization does not allow strings > 64K to be serialized (due to the 
limitations of the UTF-8 encoding used for strings).  The serialization protocol
should support the serialization of such "long" strings.

This also impacts the ability to send "long" strings via RMI calls.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: kestrel FIXED IN: kestrel-beta INTEGRATED IN: kestrel-beta
14-06-2004

EVALUATION See public summary. This has been fixed in 1.3. A new typecode ObjectStreamConstants.TC_LONGSTRING is now used to indicate "long" strings in the serialization protocol. The actual encoding of a long string is the same as UTF-8, except that 64 bits are used to store the length of the UTF encoding (as opposed to the standard 16 bits). For details, see the Object Serialization Specification.
11-06-2004

SUGGESTED FIX Add a new typecode for "long strings" (e.g., TC_WSTRING).
11-06-2004

PUBLIC COMMENTS Object serialization does not allow strings > 64K to be serialized (due to the limitations of the UTF-8 encoding used for strings). The serialization protocol should support the serialization of such "long" strings. This also impacts the ability to send "long" strings via RMI calls.
10-06-2004