Community
Participate
Working Groups
When using the method coalesce with an Expression and a literal such as: criteriaBuilder.coalesce(root.get(attribute),0d) The following exception is thrown: Caused by: java.lang.ClassCastException: java.lang.Double cannot be cast to org.eclipse.persistence.internal.jpa.querydef.InternalSelection at org.eclipse.persistence.internal.jpa.querydef.CriteriaBuilderImpl.coalesce(CriteriaBuilderImpl.java:2117) Literals should be admitted in the coalesce method of CriteriaBuilder interface implementation.
As a workaround you can use: criteriaBuilder.coalesce(root.get(attribute),criteriaBuilder.literal(0d))
Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next.
News about this bug? Eclipse link project is dead?
https://github.com/eclipse-ee4j/eclipselink/issues/888
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink