fix bug with enumeration in java compiler