test against jdk8 and openjdk