Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Sources/JavaKit/Exceptions/ExceptionHandling.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ extension JNIEnvironment {

// Check whether a Java exception occurred.
if let exception = interface.ExceptionOccurred(self) {
let throwable = Throwable(javaThis: exception, environment: self)
interface.ExceptionClear(self)
throw throwable
throw Throwable(javaThis: exception, environment: self)
}

return result
Expand Down