Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2992

Improve the warning message when building with Java version < 9

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11.0
    • Affects Version/s: None
    • Component/s: Build
    • None

      It's confusing that we print "1.8" and "1.9" in the build warning now that the releases are referred to as "8" and "9".

      Consider changing the warning to:

              gradle.rootProject.logger.error("\nWARNING:\nJava ${JavaVersion.VERSION_1_9.getMajorVersion()} is required to build the driver: " +
                      "you are using Java ${JavaVersion.current().getMajorVersion()}.")
      

      Which will print:

      Java 9 is required to build the driver: you are using Java 8.
      

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: