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:

Environment

macOS High Sierra
Java 8
Wildfly 13

Activity

Show:
Guillaume Smet
June 13, 2018, 8:16 AM

could you create a test case using our test case template: https://github.com/hibernate/hibernate-test-case-templates/tree/master/orm/hibernate-orm-5 ?

That will help to understand the issue.

Thanks!

Guillaume Smet
June 13, 2018, 8:18 AM

Just saw you added a test case here: https://github.com/hibernate/hibernate-orm/pull/2345 .

Cristhian Camilo Lopez
June 21, 2018, 10:32 AM

Thanks @Guillaume Smet for your fix in the PR ( https://github.com/hibernate/hibernate-orm/pull/2345 ) I hope it can be included in the 5.3.2 release.

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

Priority

Major
Configure