Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
None
Description
Whenever there is a catch all default POST_LOAD callback, EJBQL aggregate queries (that return Object[]) would throw:
ava.lang.ClassCastException: [Ljava.lang.Object;
at org.apache.cayenne.reflect.LifecycleCallbackEventHandler.performCallbacks(LifecycleCallbackEventHandler.java:145)
at org.apache.cayenne.reflect.LifecycleCallbackRegistry.performCallbacks(LifecycleCallbackRegistry.java:144)
at org.apache.cayenne.access.DataDomainQueryAction.invokePostLoad(DataDomainQueryAction.java:153)
at org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:132)
at org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
at org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:62)
at org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:282)
at org.apache.cayenne.access.DataContextQueryAction.execute(DataContextQueryAction.java:59)
at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1323)
at org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1312)
at org.apache.cayenne.access.DataContextEJBQLQueryTest.testSelectAggregate(DataContextEJBQLQueryTest.java:51)