OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.base; |
| 6 |
| 7 import org.chromium.base.annotations.CalledByNative; |
| 8 import org.chromium.base.annotations.MainDex; |
| 9 import org.chromium.base.annotations.SuppressFBWarnings; |
| 10 |
| 11 @MainDex |
| 12 @SuppressFBWarnings("NM_CLASS_NOT_EXCEPTION") |
| 13 abstract class ThrowUncaughtException { |
| 14 @CalledByNative |
| 15 private static void post() { |
| 16 ThreadUtils.postOnUiThread(new Runnable() { |
| 17 @Override |
| 18 public void run() { |
| 19 throw new RuntimeException("Intentional exception not caught by
JNI"); |
| 20 } |
| 21 }); |
| 22 } |
| 23 } |
OLD | NEW |