[jboss-jira] [JBoss JIRA] (JASSIST-247) SerializedProxy won't work on JDK8

Jumper Chen (JIRA) issues at jboss.org
Fri May 29 06:03:03 EDT 2015


Jumper Chen created JASSIST-247:
-----------------------------------

             Summary: SerializedProxy won't work on JDK8
                 Key: JASSIST-247
                 URL: https://issues.jboss.org/browse/JASSIST-247
             Project: Javassist
          Issue Type: Bug
    Affects Versions: 3.19.0-GA, 3.18.2-GA
         Environment: JDK 8
            Reporter: Jumper Chen
            Assignee: Shigeru Chiba


If we serialize the proxy object, it will cause java.lang.ClassCastException on JDK8, but it works on JDK7.
The following is its error log.
{code}
Exception in thread "main" java.lang.ClassCastException: cannot assign instance of javassist.util.proxy.SerializedProxy to field issue.SerializationIssue$FormProxyHandler$FormStatusImpl.self of type issue.SerializationIssue$FormProxyObject in instance of issue.SerializationIssue$FormProxyHandler$FormStatusImpl
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list