Issue 2531: Serializable objects in Anys need reference semantics (java-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: Section 25.16 (fifth paragraph) says that Streamable types have reference semantics. The same should apply to Serializable types, for consistency and so that valuetypes can be sent across DII. Resolution: see below Revised Text: Insert the following paragraph after the 5th paragraph in Section 16: The insert and extract methods for Serializables implement reference semantics. For a serializable type, an Any is a container in which the data is inserted and held. The Any does not copy or preserve the state of the serializable object that it holds when the insert method is invoked. The contents of the Any are not serialized until the write_value() method is invoked, or the create_input_stream() method is invoked. Invoking create_output_stream() and writing to the Any, or calling read_value(), will update the state of the last serializable object that was inserted into the Any, if one was previously inserted. Similarly, calling the extract_Value() method multiple times will return the same contained serializable object. Actions taken: March 12, 1999: received issue February 27, 2001: closed issue Discussion: End of Annotations:===== ate: Fri, 12 Mar 1999 20:02:38 +0000 From: Simon Nash Organization: IBM X-Accept-Language: en To: issues@omg.org CC: java-rtf@omg.org, Tom Watson Subject: Serializable objects in Anys need reference semantics Section 25.16 (fifth paragraph) says that Streamable types have reference semantics. The same should apply to Serializable types, for consistency and so that valuetypes can be sent across DII. Simon -- Simon C Nash, Technology Architect, IBM Java Technology Centre Tel. +44-1962-815156 Fax +44-1962-818999 Hursley, England Internet: nash@hursley.ibm.com Lotus Notes: Simon Nash@ibmgb