[hibernate-dev] ClassCastException with 2nd level cache not entirely gone?

Sanne Grinovero sanne at hibernate.org
Fri Mar 7 06:05:39 EST 2014


Hi Guillaume,
thanks for the timely notice: that's critical. Please open a new
issue, we usually don't reopen issues which where already included in
some release.


On 7 March 2014 10:52, Guillaume Smet <guillaume.smet at hibernate.org> wrote:
> Hi all,
>
> We just hit the ClassCastException problem with 2nd level cache
> reported by other people.
>
> But... we're using *4.3.4.Final* so I'm not sure this issue has really
> been fixed with 4.3.4.Final.
>
> Typically, we have the following hierarchy:
> AbstractUser
>     TechnicalUser (id = 1)
>     AccountManager (id = 2)
>
> entityManager.find(AccountManager.class, 1) returns the TechnicalUser
> 1 and not null if the 2nd level cache is enabled (and the object is in
> the cache).
>
> I'm pretty sure it's not the expected behavior.
>
> Should I open a JIRA issue or do you prefer to reopen an existing
> issue? I'm not entirely sure it's due to the same problem so I thought
> I might as well ask here.
>
> Thanks for your feedback.
>
> --
> Guillaume
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev


More information about the hibernate-dev mailing list