when evaluating TREAT downcast in where clause, path resolution should only allow downcastable value

Description

Reproducing test is available for 4.3 branch via https://github.com/scottmarlow/hibernate-orm/tree/JBCTS-1383_4.3_branch

Environment

None

Assignee

Steve Ebersole

Reporter

Scott Marlow

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Blocker
Configure