Uploaded image for project: 'Openfire'
  1. OF-1737

Java specification version comparison fails for single-number versions

    Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 4.4.0
    • Components: Core
    • Labels:
      None

      Description

      JavaSpecVersion.java is used to compare Java Specification Versions (the result of System.getProperty( "java.specification.version" ) ).

      The code expects the version number to have have a major and minor version part, separated by a dot: 1.8.

      Java 11 returns only a single value: 11.

      As a result, Openfire incorrectly assumes that Java 11 is older than Java 8, which prevents plugins that require Java 8 or newer, from being loaded. 

        Attachments

          Activity

            People

            • Assignee:
              Guus der Kinderen
              Reporter:
              Guus der Kinderen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: