GEODE-10404: Fix javaobject compilation for Java 11 (#980)