libcore: Fix compilation of Enum on JDK 7

Change-Id: I3f07cc6ae7bf84ec87cd1d03ca81867095ec9bec