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

Commit 6f3a75e1 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Android (Google) Code Review
Browse files

Merge "Throw errors on failures to set system properties."

parents 0c5820ad 06f36743
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -182,6 +182,11 @@ static void SystemProperties_set(JNIEnv *env, jobject clazz,
    if (valJ != NULL) {
        env->ReleaseStringUTFChars(valJ, val);
    }

    if (err < 0) {
        jniThrowException(env, "java/lang/RuntimeException",
                          "failed to set system property");
    }
}

static JNINativeMethod method_table[] = {