Maybe this could be a hint: While the Hibernate ORM Roadmap states
Query parser Improved query p-5.0.0.Finalarser based on Antlr 3/4
the hibernate-core-5.0.0.Final.pom still defines antlr 2.7.7 as a dependency.