JDK: do not harcode the expected version.