It find that CriteriaBuilder.equal will throws NullPointerException, below is the stacktrace
After checking the source code, it suspected that there is a bug in
cause the selectCase.getJavaType() always return null.
The javaType override logic of SearchedCaseExpression actually do nothing:
I think it should call AbstractTupleElement.resetJavaType instead of adjustJavaType