private static Local<?> boxIfRequired(Code code, Local<?> parameter, Local<Object> temp) {
    MethodId<?, ?> unboxMethod = PRIMITIVE_TYPE_TO_UNBOX_METHOD.get(parameter.getType());
    if (unboxMethod == null) {
      return parameter;
    }
    code.invokeStatic(unboxMethod, temp, parameter);
    return temp;
  }
Add

<pre>
    abstractMethodErrorMessage = method + " cannot be called";
    abstractMethodError = new AbstractMethodError(abstractMethodErrorMessage);
    throw abstractMethodError;
</pre>

<p>to the {@code code}.

@param code The code to add to
@param method The method that is abstract
@param abstractMethodErrorMessage The {@link Local} to store the error message
@param abstractMethodError The {@link Local} to store the error object
android/android_framework/dex-maker/src/main/java/com/android/dx/stock/ProxyBuilder.java