Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-3 Support JDK 9 on Geode
  3. GEODE-5850

Java11 testing in PutCommandWithJsonTest fails due to String declaration of classes.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • None

    Description

      In iterative testing, we saw the error

      Error while processing command <put --region=region --key=key --value=('name':'Jinmei') --value-class=Customer> Reason : java.lang.UnsupportedClassVersionError: Customer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
      

      This is due to the following:

      • We build in Java8
      • We test in Java11
      • This particular AcceptanceTest declares a class to build into a jar, which implicitly gets compiled in the test JVM (Java11)
      • This causes an UnsupportedClassVersionError, since the started locator and server are running Java8.

      Attachments

        Issue Links

          Activity

            People

              onichols Owen Nichols
              prhomberg Patrick Rhomberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h