caseLiteral = (JLiteral) constantExpression;
} else {
// Adapted from CaseStatement.resolveCase().
assert x.constantExpression.resolvedType.isEnum();
NameReference reference = (NameReference) x.constantExpression;
FieldBinding field = reference.fieldBinding();
caseLiteral = JIntLiteral.get(field.original().id);
}
push(new JCaseStatement(info, caseLiteral));
} catch (Throwable e) {
throw translateException(x, e);