Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In several Acceptance and DUnit tests, in particular in tests dealing with deploy jar, we commonly have code blocks like the following:
private File createJar() throws IOException { File jarToDeploy = new File(gfsh.getTemporaryFolder().getRoot(), "ourJar.jar"); String classContents = "import org.apache.geode.cache.util.ObjectSizer; import org.apache.geode.cache.Declarable;public class MySizer implements ObjectSizer, Declarable { public int sizeof(Object o) { return 10; } }"; JarBuilder jarBuilder = new JarBuilder(); jarBuilder.buildJar(jarToDeploy, classContents); return jarToDeploy; }
This causes tests to fail when run in Java11, as code compiled in the Java11 test VM cannot execute on the Java8-compiled server VMs.
Attachments
Attachments
Issue Links
- relates to
-
GEODE-5850 Java11 testing in PutCommandWithJsonTest fails due to String declaration of classes.
- Resolved
-
GEODE-3 Support JDK 9 on Geode
- Resolved
1.
|
Extract String code from ConfigureEvictionThroughGfsh | Resolved | Owen Nichols |
|