This bug probably also exists in Hibernate 5 (same code in LoadQueryJoinAndFetchProcessor), but I did not test it.