// This code can actually leave an unbox operation in
// an lvalue position, for example ++(x.intValue()).
// Such trees are cleaned up in FixAssignmentToUnbox.
JType typeToUnbox = (JType) typeMap.get(x.resolvedType);
if (!(typeToUnbox instanceof JClassType)) {
throw new InternalCompilerException(result,
"Attempt to unbox a non-class type: " + typeToUnbox.getName(),
null);
}
result = unbox(result, (JClassType) typeToUnbox);