summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-11 19:10:35 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-11 19:10:35 -0700
commitec44be7b7b2f0bad4ab0ab13eeea3b74f673ecda (patch)
tree82b61293d339dcca409c52f6b4c8c967e23c2c08
parentb0efdbda38079a84657b7d66603ab1e7472110e7 (diff)
parentc3229d9810aa041d26f38e1ee3988a5a56341c3e (diff)
Merge "Remove exception description message" into main
-rw-r--r--core/jni/android_os_Parcel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/jni/android_os_Parcel.cpp b/core/jni/android_os_Parcel.cpp
index b4c58b9b246a..e1b3479c7ed2 100644
--- a/core/jni/android_os_Parcel.cpp
+++ b/core/jni/android_os_Parcel.cpp
@@ -604,9 +604,7 @@ static jbyteArray android_os_Parcel_marshall(JNIEnv* env, jclass clazz, jlong na
static long ensure_capacity(JNIEnv* env, Parcel* parcel, jint remaining) {
long dataSize = parcel->dataSize();
if (remaining < dataSize) {
- jniThrowExceptionFmt(env, "java/nio/BufferOverflowException",
- "Destination buffer remaining capacity %d is less than the Parcel data size %d.",
- remaining, dataSize);
+ jnihelp::ThrowException(env, "java/nio/BufferOverflowException", "()V");
return -1;
}
return dataSize;