[hibernate-issues] [JIRA] (HHH-9395) Throw exception for treat(path as type) if target type is not a subtype of path type