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.
1 parent 636387a commit 31e1d9bCopy full SHA for 31e1d9b
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+NativeTranslation.swift
@@ -852,7 +852,7 @@ extension JNISwift2JavaGenerator {
852
// Defer might on any thread, so we need to attach environment.
853
printer.print("let deferEnvironment = try! JavaVirtualMachine.shared().environment()")
854
for globalRef in globalRefs {
855
- printer.print("environment.interface.DeleteGlobalRef(deferEnvironment, \(globalRef))")
+ printer.print("deferEnvironment.interface.DeleteGlobalRef(deferEnvironment, \(globalRef))")
856
}
857
858
if isThrowing {
0 commit comments