Fixed compilation error in EnumMap when compiling with Oracle's Java 8 JDK. (#315)