harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nikolay (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-421) java.beans.VetoableChangeSupport.readObject() throws unexpected ClassCastException
Date Fri, 28 Apr 2006 09:39:37 GMT
java.beans.VetoableChangeSupport.readObject() throws unexpected ClassCastException
----------------------------------------------------------------------------------

         Key: HARMONY-421
         URL: http://issues.apache.org/jira/browse/HARMONY-421
     Project: Harmony
        Type: Bug

  Components: Classlib  
    Reporter: nikolay


Attempt to desterilized BeanContextChildSupport class leads to throwing ClassCastException.
Analyze shows that the root course in VetoableChangeSupport.readObject(ObjectInputStream)
method.
Bug is reproducible on unit Harmony test tests/api/java/beans/beancontext/BeanContextMembershipEventTest
case testSerialization

Harmony output: 
java.lang.ClassCastException: java.util.Hashtable incompatible with java.util.ArrayList
        at java.beans.VetoableChangeSupport.readObject(VetoableChangeSupport.java:277)
        at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
        at java.lang.reflect.Method.invoke(Method.java:255)
        at java.io.ObjectInputStream.readObjectForClass(ObjectInputStream.java:1330)
        at java.io.ObjectInputStream.readHierarchy(ObjectInputStream.java:1265)
        at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:1808)
        at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:784)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1973)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1927)
        at java.io.ObjectInputStream.readFieldValues(ObjectInputStream.java:1127)
        at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:402)
        at java.beans.beancontext.BeanContextChildSupport.readObject(BeanContextChildSupport.java:173)
        at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
        at java.lang.reflect.Method.invoke(Method.java:255)
        at java.io.ObjectInputStream.readObjectForClass(ObjectInputStream.java:1330)
        at java.io.ObjectInputStream.readHierarchy(ObjectInputStream.java:1265)
        at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:1808)
        at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:784)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1973)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1927)
        at Test.main(Test.java:230)


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


Mime
View raw message