art: Fix building under JDK7

Change-Id: Ia86c20b04c9df2f86ee1e094c21c303de9ca2b43
Signed-off-by: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Fix compilation of Enum on JDK 7

Change-Id: I2e58b6a527e4ef1fc7ed3359b8aea88d01a031fb

libcore: Better Enum fix for JDK 7

 * Jerome Pilliet suggests using a cast in the compareTo method instead of
   changing the field visibility. This is a much better fix.

Change-Id: I334105e0922225512a4d0a2d4b6c9c6ec71b9c51