[
https://issues.apache.org/jira/browse/GEODE-5850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16657137#comment-16657137
]
ASF subversion and git services commented on GEODE-5850:
--------------------------------------------------------
Commit 161ab9acef1f0ccf6c4e894c5827f71b6ec86360 in geode's branch
refs/heads/develop from [~onichols-pivotal]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=161ab9a ]
GEODE-5846 GEODE-5850 GEODE-5860 GEODE-5862 GEODE-5878 no JAVA_HOME
* pipeline now explicitly sets compileJVM and testJVM
* pipeline no longer sets JAVA_HOME when invoking gradlew
* this ensures unintended java version does not leak into tests
* developers may set JAVA_HOME and it will be used as default for both
> Java11 testing in PutCommandWithJsonTest fails due to String declaration of
> classes.
> ------------------------------------------------------------------------------------
>
> Key: GEODE-5850
> URL: https://issues.apache.org/jira/browse/GEODE-5850
> Project: Geode
> Issue Type: Sub-task
> Reporter: Patrick Rhomberg
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h
> Remaining Estimate: 0h
>
> In iterative testing, we saw the error
> {noformat}
> 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
> {noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)