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 2adf7de commit 1aaebf5Copy full SHA for 1aaebf5
Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift
@@ -528,9 +528,9 @@ extension JNISwift2JavaGenerator {
528
let parametersStr = parameters.joined(separator: ", ")
529
530
// Print default global arena variation
531
- // If we have enabled Java callbacks, we do not want to emit these
532
- // for protocols as we already disable arenas for these methods,
533
- // which would then lead to duplicate methods.
+ // If we have enabled javaCallbacks we must emit default
+ // arena methods for protocols, as this is what
+ // Swift will call into, when you call a interface from Swift.
534
let shouldGenerateGlobalArenaVariation: Bool
535
let isParentProtocol = importedFunc?.parentType?.asNominalType?.isProtocol ?? false
536
0 commit comments