javadoc of JDK 8 is more strict.