diff options
author | 2025-03-11 19:10:35 -0700 | |
---|---|---|
committer | 2025-03-11 19:10:35 -0700 | |
commit | ec44be7b7b2f0bad4ab0ab13eeea3b74f673ecda (patch) | |
tree | 82b61293d339dcca409c52f6b4c8c967e23c2c08 | |
parent | b0efdbda38079a84657b7d66603ab1e7472110e7 (diff) | |
parent | c3229d9810aa041d26f38e1ee3988a5a56341c3e (diff) |
Merge "Remove exception description message" into main
-rw-r--r-- | core/jni/android_os_Parcel.cpp | 4 |
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; |