| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final JNIExceptionWrapper. | |
| private static volatile JNI. | |
| private static final JNIExceptionWrapper. | |
| private static final JNIExceptionWrapper. | |
| private static final JNIExceptionWrapper. | |
| private static final String | |
| private static final String | |
| private static final Set | JNI_TRANSITION_METHODS
Names of the methods in the |
| private static final long | |
| private final JNI. | |
| private final boolean | |
| private static final JNIExceptionWrapper. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static JNI. | |
| pack-priv static <T extends JNI. | |
| private static <T extends JNI. | |
| private static <T extends JNI. | |
| private static <T extends JNI. | |
| private static boolean | containsJNIHostCall(StackTraceElement[] stackTrace)
Determines if |
| public static JNI. | createHSException(JNI.
the env,JNIEnvan exception to be created in HotSpot original)Crates an exception in HotSpot representing the given |
| private boolean | Returns: true if the stack trace needed a mergeCreates a merged native image and HotSpot stack trace and updates this
|
| private static String | |
| private static String | |
| private static JNI. | |
| private static int | Returns: 0 if no caller foundGets the index of the first frame denoting the caller of
|
| private static int | Returns: 0 if no caller foundGets the index of the first frame denoting the native method call. |
| private static StackTraceElement[] | |
| private static String | |
| private static boolean | isJNIHostCall(StackTraceElement frame)
Determines if |
| private static boolean | |
| public static StackTraceElement[] | mergeStackTraces(StackTraceElement[] hotSpotStackTrace, StackTraceElement[] nativeStackTrace, boolean originatedInHotSpot)
|
| private static StackTraceElement[] | mergeStackTraces(StackTraceElement[] hotSpotStackTrace, StackTraceElement[] nativeStackTrace, int hotSpotStackStartIndex, int nativeStackStartIndex, boolean originatedInHotSpot)
Merges |
| private void | throwInHotSpot(JNI.
Re-throws this JNI exception in HotSpot after updating the stack trace to include the native image frames between the native image entry point and the call back to HotSpot that threw the original JNI exception. |
| public static void | throwInHotSpot(JNI.
the env,JNIEnvan exception to be thrown in HotSpot original)Throws an exception into HotSpot. |
| private static JNI. | updateStackTrace(JNI.
|
| public static void | wrapAndThrowPendingJNIException(JNI.
If there is a pending JNI exception, this method wraps it in a |
| public static void | wrapAndThrowPendingJNIException(JNI.
If there is a pending JNI exception, this method wraps it in a |
| CreateException | back to summary |
|---|---|
| private static final JNIExceptionWrapper. | |
| entryPointsClass | back to summary |
|---|---|
| private static volatile JNI. | |
| GetClassName | back to summary |
|---|---|
| private static final JNIExceptionWrapper. | |
| GetStackTrace | back to summary |
|---|---|
| private static final JNIExceptionWrapper. | |
| GetThrowableMessage | back to summary |
|---|---|
| private static final JNIExceptionWrapper. | |
| HS_ENTRYPOINTS_CLASS | back to summary |
|---|---|
| private static final String HS_ENTRYPOINTS_CLASS | |
| JNI_TRANSITION_CLASS | back to summary |
|---|---|
| private static final String JNI_TRANSITION_CLASS | |
| JNI_TRANSITION_METHODS | back to summary |
|---|---|
| private static final Set<String> JNI_TRANSITION_METHODS Names of the methods in the | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| throwableHandle | back to summary |
|---|---|
| private final JNI. | |
| throwableRequiresStackTraceUpdate | back to summary |
|---|---|
| private final boolean throwableRequiresStackTraceUpdate | |
| UpdateStackTrace | back to summary |
|---|---|
| private static final JNIExceptionWrapper. | |
| JNIExceptionWrapper | back to summary |
|---|---|
| private JNIExceptionWrapper(JNI. | |
| callCreateException | back to summary |
|---|---|
| private static JNI. | |
| callGetClassName | back to summary |
|---|---|
pack-priv static <T extends JNI.
| |
| callGetStackTrace | back to summary |
|---|---|
private static <T extends JNI.
| |
| callGetThrowableMessage | back to summary |
|---|---|
private static <T extends JNI.
| |
| callUpdateStackTrace | back to summary |
|---|---|
| private static <T extends JNI. | |
| containsJNIHostCall | back to summary |
|---|---|
| private static boolean containsJNIHostCall(StackTraceElement[] stackTrace) Determines if | |
| createHSException | back to summary |
|---|---|
| public static JNI. Crates an exception in HotSpot representing the given | |
| createMergedStackTrace | back to summary |
|---|---|
| private boolean createMergedStackTrace(JNI. Creates a merged native image and HotSpot stack trace and updates this
| |
| formatExceptionMessage | back to summary |
|---|---|
| private static String formatExceptionMessage(String className, String message) | |
| getClassName | back to summary |
|---|---|
| private static String getClassName(JNI. | |
| getEntryPoints | back to summary |
|---|---|
| private static JNI. | |
| getIndexOfPropagateJNIExceptionFrame | back to summary |
|---|---|
| private static int getIndexOfPropagateJNIExceptionFrame(StackTraceElement[] stackTrace) Gets the index of the first frame denoting the caller of
| |
| getIndexOfTransitionToNativeFrame | back to summary |
|---|---|
| private static int getIndexOfTransitionToNativeFrame(StackTraceElement[] stackTrace) Gets the index of the first frame denoting the native method call.
| |
| getJNIExceptionStackTrace | back to summary |
|---|---|
| private static StackTraceElement[] getJNIExceptionStackTrace(JNI. Gets the stack trace from a JNI exception. | |
| getMessage | back to summary |
|---|---|
| private static String getMessage(JNI. | |
| isJNIHostCall | back to summary |
|---|---|
| private static boolean isJNIHostCall(StackTraceElement frame) Determines if | |
| isStackFrame | back to summary |
|---|---|
| private static boolean isStackFrame(StackTraceElement stackTraceElement, Class<?> clazz, String methodName) | |
| mergeStackTraces | back to summary |
|---|---|
| public static StackTraceElement[] mergeStackTraces(StackTraceElement[] hotSpotStackTrace, StackTraceElement[] nativeStackTrace, boolean originatedInHotSpot) | |
| mergeStackTraces | back to summary |
|---|---|
| private static StackTraceElement[] mergeStackTraces(StackTraceElement[] hotSpotStackTrace, StackTraceElement[] nativeStackTrace, int hotSpotStackStartIndex, int nativeStackStartIndex, boolean originatedInHotSpot) Merges | |
| throwInHotSpot | back to summary |
|---|---|
| private void throwInHotSpot(JNI. Re-throws this JNI exception in HotSpot after updating the stack trace to include the native image frames between the native image entry point and the call back to HotSpot that threw the original JNI exception. | |
| throwInHotSpot | back to summary |
|---|---|
| public static void throwInHotSpot(JNI. Throws an exception into HotSpot.
If | |
| updateStackTrace | back to summary |
|---|---|
| private static JNI. | |
| wrapAndThrowPendingJNIException | back to summary |
|---|---|
| public static void wrapAndThrowPendingJNIException(JNI. If there is a pending JNI exception, this method wraps it in a | |
| wrapAndThrowPendingJNIException | back to summary |
|---|---|
| public static void wrapAndThrowPendingJNIException(JNI. If there is a pending JNI exception, this method wraps it in a
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final JNIExceptionWrapper. | DEFAULT
Default handler throwing |
| Modifier and Type | Method and Description |
|---|---|
| public static JNIExceptionWrapper. | allowExceptions(Class<? extends Throwable>... allowedExceptions)
Creates an exception handler suppressing |
| public void | handleException(JNIExceptionWrapper.
Handles the JNI pending exception. |
| DEFAULT | back to summary |
|---|---|
| public static final JNIExceptionWrapper. Default handler throwing | |
| allowExceptions | back to summary |
|---|---|
| public static JNIExceptionWrapper. Creates an exception handler suppressing
| |
| handleException | back to summary |
|---|---|
| public void handleException(JNIExceptionWrapper. Handles the JNI pending exception. | |
ExceptionHandler.
| Modifier and Type | Field and Description |
|---|---|
| private final JNI. | |
| private final JNI. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JNI. | |
| public JNI. | |
| public String | |
| public void |
| env | back to summary |
|---|---|
| private final JNI. | |
| throwable | back to summary |
|---|---|
| private final JNI. | |
| ExceptionHandlerContext | back to summary |
|---|---|
| pack-priv ExceptionHandlerContext(JNI. | |
| getEnv | back to summary |
|---|---|
| public JNI. Returns current thread JNIEnv. | |
| getThrowable | back to summary |
|---|---|
| public JNI. Returns pending JNI exception. | |
| getThrowableClassName | back to summary |
|---|---|
| public String getThrowableClassName() Returns pending JNI exception class name. | |
| throwJNIExceptionWrapper | back to summary |
|---|---|
| public void throwJNIExceptionWrapper() Throws | |
| Modifier and Type | Field and Description |
|---|---|
| private volatile JNI. | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static JNIExceptionWrapper. | |
| public String | getDisplayName()
Implements org. Returns a method display name used for logging. |
| public JNI. | getJMethodID()
Implements org. Returns a method JNI |
| pack-priv JNIExceptionWrapper. |
| methodId | back to summary |
|---|---|
| private volatile JNI. | |
| methodName | back to summary |
|---|---|
| private final String methodName | |
| methodSignature | back to summary |
|---|---|
| private final String methodSignature | |
| JNIMethodResolver | back to summary |
|---|---|
| private JNIMethodResolver(String methodName, String methodSignature) | |
| create | back to summary |
|---|---|
| pack-priv static JNIExceptionWrapper. | |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() Implements org. Doc from org. Returns a method display name used for logging.
| |
| getJMethodID | back to summary |
|---|---|
| public JNI. Implements org. Doc from org. Returns a method JNI
| |
| resolve | back to summary |
|---|---|
| pack-priv JNIExceptionWrapper. | |