Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3229d98 authored by Shai Barack's avatar Shai Barack
Browse files

Remove exception description message

BufferOverflowException doesn't have a constructor that takes a message.

Bug: 402499291
Flag: EXEMPT bugfix
Change-Id: Ifef745a0081ab4cf1d24aedc0f88a183759f97c3
parent f87544e6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;