You could use elementData.clone() instead of System.arraycopy
Rémi On 02/11/2011 02:03 PM, Neil Richards wrote:
Hi Peter, Using putFields/writeFields was the only way I found of properly addressing the problem in Vector serialization. The fix has not impacted performance significantly in places where it has been used in anger. (I'd naturally be interested in any further improvements in this area.) All, please find attached an updated webrev zip file, which makes 'data' final (thanks for the suggestion, Peter), and also sorts out the licensing text. Thanks, Neil -- Unless stated above: IBM email: neil_richards at uk.ibm.com IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU