Fix compile error on Java 1.8.0_20.