Fix the new Enum for jdk7

Change-Id: I9acc8b4657c6eaa17c9af6e0db9fecee0e33474b