Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1027

org.apache.commons.lang3.SystemUtils#isJavaVersionAtLeast should return true by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.4
    • None
    • None

    Description

      Hi

      last [lang] release doesn't support java 9 (not in JavaVersion enum). However it shouldn't break the org.apache.commons.lang3.SystemUtils#isJavaVersionAtLeast method which should return true when java version is not known (not known = older)

      My proposal is to add UNKNOWN to the enum and override atLeast for this particular value to return true.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              romain.manni-bucau Romain Manni-Bucau
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: