diff options
Diffstat (limited to 'runtime/reflection-inl.h')
-rw-r--r-- | runtime/reflection-inl.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/reflection-inl.h b/runtime/reflection-inl.h index be4d5603f9..f21c1a0eb4 100644 --- a/runtime/reflection-inl.h +++ b/runtime/reflection-inl.h @@ -27,7 +27,7 @@ namespace art { -inline bool ConvertPrimitiveValue(const ThrowLocation* throw_location, bool unbox_for_result, +inline bool ConvertPrimitiveValue(bool unbox_for_result, Primitive::Type srcType, Primitive::Type dstType, const JValue& src, JValue* dst) { DCHECK(srcType != Primitive::kPrimNot && dstType != Primitive::kPrimNot); @@ -88,13 +88,11 @@ inline bool ConvertPrimitiveValue(const ThrowLocation* throw_location, bool unbo break; } if (!unbox_for_result) { - ThrowIllegalArgumentException(throw_location, - StringPrintf("Invalid primitive conversion from %s to %s", + ThrowIllegalArgumentException(StringPrintf("Invalid primitive conversion from %s to %s", PrettyDescriptor(srcType).c_str(), PrettyDescriptor(dstType).c_str()).c_str()); } else { - ThrowClassCastException(throw_location, - StringPrintf("Couldn't convert result of type %s to %s", + ThrowClassCastException(StringPrintf("Couldn't convert result of type %s to %s", PrettyDescriptor(srcType).c_str(), PrettyDescriptor(dstType).c_str()).c_str()); } |