We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37bce97 + 38b39c1 commit 114ef73Copy full SHA for 114ef73
Sources/JavaKit/Exceptions/ExceptionHandling.swift
@@ -20,9 +20,8 @@ extension JNIEnvironment {
20
21
// Check whether a Java exception occurred.
22
if let exception = interface.ExceptionOccurred(self) {
23
- let throwable = Throwable(javaThis: exception, environment: self)
24
interface.ExceptionClear(self)
25
- throw throwable
+ throw Throwable(javaThis: exception, environment: self)
26
}
27
28
return result
0 commit comments