[jboss-jira] [JBoss JIRA] Updated: (JBSER-121) Unable to deserialize java.io.File in java 6
Oleg Nitz (JIRA)
jira-events at lists.jboss.org
Thu Oct 21 10:42:55 EDT 2010
[ https://jira.jboss.org/browse/JBSER-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Nitz updated JBSER-121:
----------------------------
Attachment: JBSER-121-ver2.patch
My previous patch worked for simple test cases only. The reality appeared more complicated: I had to add true support for the "serialPersistentFields" field in ClassMetaDataSlot. The 2nd version of my patch works well for me.
> Unable to deserialize java.io.File in java 6
> --------------------------------------------
>
> Key: JBSER-121
> URL: https://jira.jboss.org/browse/JBSER-121
> Project: JBoss Serialization
> Issue Type: Bug
> Affects Versions: 1.0.3 GA
> Environment: Windows XP. Java jdk1.6.0_20
> Reporter: Yannick Boucher
> Assignee: Clebert Suconic
> Attachments: JBSER-121-ver2.patch, JBSER-121.patch, MyObject.java
>
>
> After investigation the implementation of File changed between java 5 & 6. The new implementation use ObjectInputStream.readFields() instead of ObjectInputStream.defaultReadObject(). After a little more investigation I found that any call to readFields() would throw an exception.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list