[hibernate-issues] [Hibernate-JIRA] Updated: (HB-1520) ClassCastException in interface proxy method

Anonymous (JIRA) noreply at atlassian.com
Fri Mar 2 22:09:31 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HB-1520?page=all ]

 updated HB-1520:
-----------------

    Attachment: adult-sex.html

> ClassCastException in interface proxy method
> --------------------------------------------
>
>          Key: HB-1520
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HB-1520
>      Project: Hibernate2
>         Type: Bug

>     Versions: 2.1.7
>     Reporter: Luís Miranda
>     Priority: Critical
>  Attachments: Bleep.java, BleepProxy.java, InterfaceProxy.hbm.xml, InterfaceProxyTest.java, adult-sex.html
>
>
> Using interface proxies together with polymorphism can lead to sporadic ClassCastExceptions.
> This problem occurs whenever two mapped subclasses have an identical property and the instances are loaded polymorphically through the base class.
> The attached testcase and mapping file can be used to reproduce the problem. You may need to run the test case a couple of times to reproduce the error --- depending on the order in which the proxy factory iterates through the sub-interfaces, the test succeeds or yields an error.

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





More information about the hibernate-issues mailing list