The class OptionalBoolean does part of JavaFX and is insclused in HotSpot. The problem is that class does not exist in OpenJDK project, so not compile the project with OpenJDK.
It's important to say with JSR 336, the Java 7, the OpenJDK project is Reference implementation. This way our project just compile in Oracle's JVM.
Sugetsion: Just use Optional<Boolean> instead, this way we have garanty all JVM will compile and run this project.