Fixed in master. hibernate-core in 5.1 and 5.0 require 1.6 source compatibility, so this could not be applied to those branches.