fix OracleJDK's compilation problem