Skip to content

Commit 3d70cfe

Browse files
committed
fix JNI throwing exceptions
1 parent 45dc84e commit 3d70cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JavaKit/Exceptions/ExceptionHandling.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extension JNIEnvironment {
3939
}
4040

4141
// Otherwise, create a exception with a message.
42-
_ = try! JavaClass<Exception>.withJNIClass(in: self) { exceptionClass in
42+
_ = try! Exception.withJNIClass(in: self) { exceptionClass in
4343
interface.ThrowNew(self, exceptionClass, String(describing: error))
4444
}
4545
}

0 commit comments

Comments
 (0)