Rework Appendable stub for compatibility with JDK9
Update javaVersion to 6 so that the JDK9 build passes
Introduce cast to make JDK9 compiler happier