Skip to content

Commit 1aaebf5

Browse files
committed
comments
1 parent 2adf7de commit 1aaebf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,9 @@ extension JNISwift2JavaGenerator {
528528
let parametersStr = parameters.joined(separator: ", ")
529529

530530
// 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.
531+
// If we have enabled javaCallbacks we must emit default
532+
// arena methods for protocols, as this is what
533+
// Swift will call into, when you call a interface from Swift.
534534
let shouldGenerateGlobalArenaVariation: Bool
535535
let isParentProtocol = importedFunc?.parentType?.asNominalType?.isProtocol ?? false
536536

0 commit comments

Comments
 (0)