Criteria selectCase() query with literals doesn't work

Description

(There doesn't seem to be any test for CriteriaBuilder#selectCase().)

This fails:

The actual query/entity mapping doesn't matter, any selectCase() expression with literals fails:

The rendered criteria query is using parameters for the literals:

The JPQL equivalent with simple literals and no parameters works:

Environment

None

Status

Assignee

Unassigned

Reporter

Christian Bauer

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure