Fixed compilation issue with the latest version of Java