Uploaded image for project: 'Hibernate Validator'
  1. Hibernate Validator
  2. HV-1048

Correctly interpret version string returned by JDK 9

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.3.Final, 5.3.0.CR1
    • Component/s: engine
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      We evaluate the current Java version we are running on in order to enable Java 8 specific features on Java 8 and beyond. The format of the value for the system property "java.specification.version" has changed, so it returns "9" in Java 9 whereas it used to return "1.8.0" before. We run into an AAIOBE exception as we try to split the value at the dots and access the second element.

      See JEP 223 for some background.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: