We're updating the issue view to help you get more done. 

java.lang.ClassCastException when checking if parameter isBound in criteria query

Description

We are using the criteria query api to add parameters and when we try to use the isBound method to check if the parameter has been set previously Hibernate crashes with the following stack trace:

1 2 3 4 aused by: java.lang.ClassCastException: org.hibernate.query.criteria.internal.compile.ExplicitParameterInfo cannot be cast to org.hibernate.query.QueryParameter at org.hibernate.query.internal.AbstractProducedQuery.isBound(AbstractProducedQuery.java:750) at org.hibernate.query.criteria.internal.compile.CriteriaQueryTypeQueryAdapter.isBound(CriteriaQueryTypeQueryAdapter.java:335) at com.synekus.core.db.CrudService.loadCompanyParamIfPresent(CrudService.kt:162)

Environment

macOS High Sierra
Java 8
Wildfly 13

Status

Assignee

Guillaume Smet

Reporter

Cristhian Camilo Lopez

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

5.3.1

Priority

Major