[JENKINS-55980] - Switch Java Specification Version comparison in the core to a robust implementation.