[jboss-jira] [JBoss JIRA] Closed: (JBSER-104) When check for Serializable is on, it doesn't serialize Class objects for non-serialializable classes

Clebert Suconic (JIRA) jira-events at lists.jboss.org
Mon Mar 10 09:50:58 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSER-104?page=all ]

Clebert Suconic closed JBSER-104.
---------------------------------

    Resolution: Duplicate Issue

> When check for Serializable is on, it doesn't serialize Class objects for non-serialializable classes
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBSER-104
>                 URL: http://jira.jboss.com/jira/browse/JBSER-104
>             Project: JBoss Serialization
>          Issue Type: Bug
>    Affects Versions: 1.0.3 GA
>            Reporter: Oleg Nitz
>         Assigned To: Clebert Suconic
>
> The following code
> JBossObjectOutputStream out = new JBossObjectOutputStream(outbuf, true);
> out.writeObject(List.class);
> throws the following wrong exception
> java.io.NotSerializableException: java.util.List
>         at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:344)
>         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:168)
>         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
>         at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
> It is wrong since Class implements Serializable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list