[hibernate-issues] [JIRA] (HHH-12295) Restore compatibility with Java 6 on branch 5.1