Build Information
Successful build of JavaCoder, reference 2.0.0 (7c66ed), with Swift 6.1 for macOS (SPM) on 9 Oct 2026 12:39:05 UTC.
Swift 6 data race errors: 69
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/32] Compiling SwiftJavaJNICore JavaExceptionType.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/32] Compiling SwiftJavaJNICore JavaType+JNI.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/32] Compiling SwiftJavaJNICore Mangling.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/32] Compiling SwiftJavaJNICore MethodSignature.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/32] Compiling AnyCodable AnyCodable.swift
[18/32] Emitting module AnyCodable
[19/32] Compiling SwiftJavaJNICore JavaType.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/32] Compiling SwiftJavaJNICore JavaValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/32] Compiling SwiftJavaJNICore JavaType+JavaSource.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/32] Compiling SwiftJavaJNICore JavaType+SwiftNames.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/32] Compiling SwiftJavaJNICore JNIError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/32] Compiling SwiftJavaJNICore JavaAnnotation.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/32] Compiling SwiftJavaJNICore JavaDemanglingError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[26/32] Compiling SwiftJavaJNICore JavaEnvironment+Refs.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/32] Compiling SwiftJavaJNICore JavaEnvironment.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/32] Compiling SwiftJavaJNICore SwiftJavaJNICore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[29/32] Compiling SwiftJavaJNICore JavaVirtualMachine.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[30/32] Compiling SwiftJavaJNICore JavaValue+Integers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[31/32] Compiling SwiftJavaJNICore JavaValue+String.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[32/32] Compiling SwiftJavaJNICore UnsafeRawBufferPointer+getJNIValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[33/36] Compiling java_swift JNIObject.swift
[34/36] Compiling java_swift JNICore.swift
/Users/admin/builder/spi-builder-workspace/Sources/java_swift/JNICore.swift:20:12: warning: let 'JNI' is not concurrency-safe because non-'Sendable' type 'JNICore' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Global JNI access point, matching the historical `java_swift` API.
20 | public let JNI = JNICore()
| |- warning: let 'JNI' is not concurrency-safe because non-'Sendable' type 'JNICore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'JNI' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | open class JNICore {
| `- note: class 'JNICore' does not conform to the 'Sendable' protocol
23 |
24 | /// Context class loader captured at `JNI_OnLoad` time. Used by
[35/36] Compiling java_swift JNIBootstrap.swift
[36/36] Emitting module java_swift
/Users/admin/builder/spi-builder-workspace/Sources/java_swift/JNICore.swift:20:12: warning: let 'JNI' is not concurrency-safe because non-'Sendable' type 'JNICore' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Global JNI access point, matching the historical `java_swift` API.
20 | public let JNI = JNICore()
| |- warning: let 'JNI' is not concurrency-safe because non-'Sendable' type 'JNICore' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'JNI' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | open class JNICore {
| `- note: class 'JNICore' does not conform to the 'Sendable' protocol
23 |
24 | /// Context class loader captured at `JNI_OnLoad` time. Used by
[37/46] Compiling JavaCoder JNIObject+JavaCoder.swift
[38/46] Compiling JavaCoder JNICore+JavaCoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:14:5: warning: var 'IntegerClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | let ObjectClassname = "java/lang/Object"
13 | let ClassClassname = "java/lang/Class"
14 | var IntegerClassname = "java/lang/Integer"
| |- warning: var 'IntegerClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'IntegerClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'IntegerClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var ByteClassname = "java/lang/Byte"
16 | var ShortClassname = "java/lang/Short"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:15:5: warning: var 'ByteClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | let ClassClassname = "java/lang/Class"
14 | var IntegerClassname = "java/lang/Integer"
15 | var ByteClassname = "java/lang/Byte"
| |- warning: var 'ByteClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ByteClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ByteClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | var ShortClassname = "java/lang/Short"
17 | var LongClassname = "java/lang/Long"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:16:5: warning: var 'ShortClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | var IntegerClassname = "java/lang/Integer"
15 | var ByteClassname = "java/lang/Byte"
16 | var ShortClassname = "java/lang/Short"
| |- warning: var 'ShortClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ShortClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ShortClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | var LongClassname = "java/lang/Long"
18 | var BigIntegerClassname = "java/math/BigInteger"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:17:5: warning: var 'LongClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | var ByteClassname = "java/lang/Byte"
16 | var ShortClassname = "java/lang/Short"
17 | var LongClassname = "java/lang/Long"
| |- warning: var 'LongClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LongClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LongClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | var BigIntegerClassname = "java/math/BigInteger"
19 | var BooleanClassname = "java/lang/Boolean"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:18:5: warning: var 'BigIntegerClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | var ShortClassname = "java/lang/Short"
17 | var LongClassname = "java/lang/Long"
18 | var BigIntegerClassname = "java/math/BigInteger"
| |- warning: var 'BigIntegerClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BigIntegerClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BigIntegerClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | var BooleanClassname = "java/lang/Boolean"
20 | var StringClassname = "java/lang/String"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:19:5: warning: var 'BooleanClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | var LongClassname = "java/lang/Long"
18 | var BigIntegerClassname = "java/math/BigInteger"
19 | var BooleanClassname = "java/lang/Boolean"
| |- warning: var 'BooleanClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BooleanClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BooleanClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | var StringClassname = "java/lang/String"
21 | var ArrayListClassname = "java/util/ArrayList"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:20:5: warning: var 'StringClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | var BigIntegerClassname = "java/math/BigInteger"
19 | var BooleanClassname = "java/lang/Boolean"
20 | var StringClassname = "java/lang/String"
| |- warning: var 'StringClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'StringClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'StringClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | var ArrayListClassname = "java/util/ArrayList"
22 | let HashMapClassname = "java/util/HashMap"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:21:5: warning: var 'ArrayListClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | var BooleanClassname = "java/lang/Boolean"
20 | var StringClassname = "java/lang/String"
21 | var ArrayListClassname = "java/util/ArrayList"
| |- warning: var 'ArrayListClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ArrayListClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ArrayListClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | let HashMapClassname = "java/util/HashMap"
23 | let SetClassname = "java/util/Set"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:32:5: warning: var 'IntegerClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | // MARK: Java Classes
32 | var IntegerClass = try! JNI.getJavaClass("java/lang/Integer")
| |- warning: var 'IntegerClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'IntegerClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'IntegerClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | var ByteClass = try! JNI.getJavaClass("java/lang/Byte")
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:33:5: warning: var 'ByteClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | // MARK: Java Classes
32 | var IntegerClass = try! JNI.getJavaClass("java/lang/Integer")
33 | var ByteClass = try! JNI.getJavaClass("java/lang/Byte")
| |- warning: var 'ByteClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ByteClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ByteClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:34:5: warning: var 'ShortClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | var IntegerClass = try! JNI.getJavaClass("java/lang/Integer")
33 | var ByteClass = try! JNI.getJavaClass("java/lang/Byte")
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
| |- warning: var 'ShortClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ShortClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ShortClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:35:5: warning: var 'LongClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | var ByteClass = try! JNI.getJavaClass("java/lang/Byte")
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
| |- warning: var 'LongClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LongClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LongClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:36:5: warning: var 'BigIntegerClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
| |- warning: var 'BigIntegerClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BigIntegerClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BigIntegerClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:37:5: warning: var 'BooleanClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
| |- warning: var 'BooleanClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BooleanClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BooleanClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:38:5: warning: var 'StringClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
| |- warning: var 'StringClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'StringClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'StringClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:39:5: warning: let 'ExceptionClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
| |- warning: let 'ExceptionClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ExceptionClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:40:5: warning: let 'UriClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
| |- warning: let 'UriClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'UriClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:41:5: warning: let 'DateClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
| |- warning: let 'DateClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DateClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:42:5: warning: let 'VMDebugClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
| |- warning: let 'VMDebugClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'VMDebugClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:43:5: warning: let 'HashSetClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
| |- warning: let 'HashSetClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashSetClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
45 | let FloatClass = try! JNI.getJavaClass("java/lang/Float")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:44:5: warning: let 'ByteBufferClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
| |- warning: let 'ByteBufferClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ByteBufferClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | let FloatClass = try! JNI.getJavaClass("java/lang/Float")
46 | let DoubleClass = try! JNI.getJavaClass("java/lang/Double")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:45:5: warning: let 'FloatClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
45 | let FloatClass = try! JNI.getJavaClass("java/lang/Float")
| |- warning: let 'FloatClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'FloatClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | let DoubleClass = try! JNI.getJavaClass("java/lang/Double")
47 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:46:5: warning: let 'DoubleClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
45 | let FloatClass = try! JNI.getJavaClass("java/lang/Float")
46 | let DoubleClass = try! JNI.getJavaClass("java/lang/Double")
| |- warning: let 'DoubleClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DoubleClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | // MARK: Java methods
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:49:5: warning: let 'UriConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID?' (aka 'Optional<OpaquePointer>') may have shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | // MARK: Java methods
49 | let UriConstructor = JNI.api.GetStaticMethodID(JNI.env, UriClass, "parse", "(Ljava/lang/String;)Landroid/net/Uri;")
| |- warning: let 'UriConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID?' (aka 'Optional<OpaquePointer>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'UriConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let DateConstructor = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "<init>", sig: "(J)V")
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:50:5: warning: let 'DateConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
48 | // MARK: Java methods
49 | let UriConstructor = JNI.api.GetStaticMethodID(JNI.env, UriClass, "parse", "(Ljava/lang/String;)Landroid/net/Uri;")
50 | let DateConstructor = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "<init>", sig: "(J)V")
| |- warning: let 'DateConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DateConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:51:5: warning: let 'IntegerConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
49 | let UriConstructor = JNI.api.GetStaticMethodID(JNI.env, UriClass, "parse", "(Ljava/lang/String;)Landroid/net/Uri;")
50 | let DateConstructor = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "<init>", sig: "(J)V")
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
| |- warning: let 'IntegerConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'IntegerConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:52:5: warning: let 'ByteConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
50 | let DateConstructor = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "<init>", sig: "(J)V")
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
| |- warning: let 'ByteConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ByteConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:53:5: warning: let 'ShortConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
| |- warning: let 'ShortConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ShortConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:54:5: warning: let 'LongConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
| |- warning: let 'LongConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'LongConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:55:5: warning: let 'BigIntegerConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
| |- warning: let 'BigIntegerConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'BigIntegerConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
57 | let FloatConstructor = try! JNI.getJavaMethod(forClass: FloatClassname, method: "<init>", sig: "(F)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:56:5: warning: let 'BooleanConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
| |- warning: let 'BooleanConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'BooleanConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | let FloatConstructor = try! JNI.getJavaMethod(forClass: FloatClassname, method: "<init>", sig: "(F)V")
58 | let DoubleConstructor = try! JNI.getJavaMethod(forClass: DoubleClassname, method: "<init>", sig: "(D)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:57:5: warning: let 'FloatConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
57 | let FloatConstructor = try! JNI.getJavaMethod(forClass: FloatClassname, method: "<init>", sig: "(F)V")
| |- warning: let 'FloatConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'FloatConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | let DoubleConstructor = try! JNI.getJavaMethod(forClass: DoubleClassname, method: "<init>", sig: "(D)V")
59 |
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:58:5: warning: let 'DoubleConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
57 | let FloatConstructor = try! JNI.getJavaMethod(forClass: FloatClassname, method: "<init>", sig: "(F)V")
58 | let DoubleConstructor = try! JNI.getJavaMethod(forClass: DoubleClassname, method: "<init>", sig: "(D)V")
| |- warning: let 'DoubleConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DoubleConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | let ObjectToStringMethod = try! JNI.getJavaMethod(forClass: "java/lang/Object", method: "toString", sig: "()Ljava/lang/String;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:60:5: warning: let 'ObjectToStringMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
58 | let DoubleConstructor = try! JNI.getJavaMethod(forClass: DoubleClassname, method: "<init>", sig: "(D)V")
59 |
60 | let ObjectToStringMethod = try! JNI.getJavaMethod(forClass: "java/lang/Object", method: "toString", sig: "()Ljava/lang/String;")
| |- warning: let 'ObjectToStringMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ObjectToStringMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | let ClassGetNameMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getName", sig: "()L\(StringClassname);")
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:61:5: warning: let 'ClassGetNameMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | let ObjectToStringMethod = try! JNI.getJavaMethod(forClass: "java/lang/Object", method: "toString", sig: "()Ljava/lang/String;")
61 | let ClassGetNameMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getName", sig: "()L\(StringClassname);")
| |- warning: let 'ClassGetNameMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ClassGetNameMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:62:5: warning: let 'ClassGetFieldMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
60 | let ObjectToStringMethod = try! JNI.getJavaMethod(forClass: "java/lang/Object", method: "toString", sig: "()Ljava/lang/String;")
61 | let ClassGetNameMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getName", sig: "()L\(StringClassname);")
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
| |- warning: let 'ClassGetFieldMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ClassGetFieldMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:63:5: warning: let 'FieldGetTypedMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
61 | let ClassGetNameMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getName", sig: "()L\(StringClassname);")
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
| |- warning: let 'FieldGetTypedMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'FieldGetTypedMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:64:5: warning: let 'NumberByteValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
| |- warning: let 'NumberByteValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberByteValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:65:5: warning: let 'NumberShortValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
| |- warning: let 'NumberShortValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberShortValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:66:5: warning: let 'NumberIntValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
| |- warning: let 'NumberIntValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberIntValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:67:5: warning: let 'NumberLongValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
| |- warning: let 'NumberLongValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberLongValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:68:5: warning: let 'NumberFloatValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
| |- warning: let 'NumberFloatValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberFloatValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:69:5: warning: let 'NumberDoubleValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
| |- warning: let 'NumberDoubleValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberDoubleValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:70:5: warning: let 'NumberBooleanValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
| |- warning: let 'NumberBooleanValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberBooleanValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:71:5: warning: let 'HashMapPutMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
| |- warning: let 'HashMapPutMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashMapPutMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:72:5: warning: let 'HashMapGetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
| |- warning: let 'HashMapGetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashMapGetMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:73:5: warning: let 'HashMapKeySetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
| |- warning: let 'HashMapKeySetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashMapKeySetMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:74:5: warning: let 'HashMapSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
| |- warning: let 'HashMapSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashMapSizeMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:75:5: warning: let 'SetToArrayMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
| |- warning: let 'SetToArrayMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'SetToArrayMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:76:5: warning: let 'ArrayListGetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
| |- warning: let 'ArrayListGetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ArrayListGetMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:77:5: warning: let 'ArrayListSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
| |- warning: let 'ArrayListSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ArrayListSizeMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:78:5: warning: let 'CollectionAddMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
| |- warning: let 'CollectionAddMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'CollectionAddMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:79:5: warning: let 'CollectionIteratorMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
| |- warning: let 'CollectionIteratorMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'CollectionIteratorMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:80:5: warning: let 'CollectionSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
| |- warning: let 'CollectionSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'CollectionSizeMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:81:5: warning: let 'IteratorNextMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
| |- warning: let 'IteratorNextMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'IteratorNextMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:82:5: warning: let 'DateGetTimeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
| |- warning: let 'DateGetTimeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DateGetTimeMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
84 | let ByteBufferArray = try! JNI.getJavaMethod(forClass: "java/nio/ByteBuffer", method: "array", sig: "()[B")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:83:5: warning: let 'VMDebugDumpReferenceTablesMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID?' (aka 'Optional<OpaquePointer>') may have shared mutable state; this is an error in the Swift 6 language mode
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
| |- warning: let 'VMDebugDumpReferenceTablesMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID?' (aka 'Optional<OpaquePointer>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'VMDebugDumpReferenceTablesMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | let ByteBufferArray = try! JNI.getJavaMethod(forClass: "java/nio/ByteBuffer", method: "array", sig: "()[B")
85 | let ByteBufferWrap = JNI.api.GetStaticMethodID(JNI.env, ByteBufferClass, "wrap", "([B)Ljava/nio/ByteBuffer;")!
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:84:5: warning: let 'ByteBufferArray' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
84 | let ByteBufferArray = try! JNI.getJavaMethod(forClass: "java/nio/ByteBuffer", method: "array", sig: "()[B")
| |- warning: let 'ByteBufferArray' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ByteBufferArray' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | let ByteBufferWrap = JNI.api.GetStaticMethodID(JNI.env, ByteBufferClass, "wrap", "([B)Ljava/nio/ByteBuffer;")!
86 |
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:85:5: warning: let 'ByteBufferWrap' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
84 | let ByteBufferArray = try! JNI.getJavaMethod(forClass: "java/nio/ByteBuffer", method: "array", sig: "()[B")
85 | let ByteBufferWrap = JNI.api.GetStaticMethodID(JNI.env, ByteBufferClass, "wrap", "([B)Ljava/nio/ByteBuffer;")!
| |- warning: let 'ByteBufferWrap' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ByteBufferWrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | fileprivate extension NSLock {
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:98:17: warning: var 'javaClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 | }
97 |
98 | fileprivate var javaClasses = [String: jclass]()
| |- warning: var 'javaClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'javaClasses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'javaClasses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | fileprivate var javaMethods = [String: jmethodID]()
100 | fileprivate var javaStaticMethods = [String: jmethodID]()
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:99:17: warning: var 'javaMethods' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
97 |
98 | fileprivate var javaClasses = [String: jclass]()
99 | fileprivate var javaMethods = [String: jmethodID]()
| |- warning: var 'javaMethods' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'javaMethods' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'javaMethods' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | fileprivate var javaStaticMethods = [String: jmethodID]()
101 | fileprivate var javaFields = [String: jmethodID]()
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:100:17: warning: var 'javaStaticMethods' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
98 | fileprivate var javaClasses = [String: jclass]()
99 | fileprivate var javaMethods = [String: jmethodID]()
100 | fileprivate var javaStaticMethods = [String: jmethodID]()
| |- warning: var 'javaStaticMethods' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'javaStaticMethods' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'javaStaticMethods' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | fileprivate var javaFields = [String: jmethodID]()
102 |
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:101:17: warning: var 'javaFields' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 | fileprivate var javaMethods = [String: jmethodID]()
100 | fileprivate var javaStaticMethods = [String: jmethodID]()
101 | fileprivate var javaFields = [String: jmethodID]()
| |- warning: var 'javaFields' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'javaFields' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'javaFields' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 | fileprivate let javaClassesLock = NSLock()
[39/46] Compiling JavaCoder JavaCoderConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaCoderConfig.swift:15:16: warning: static property 'decodableClosures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | private static let closuresLock = NSRecursiveLock()
14 |
15 | static var decodableClosures = [String: JavaDecodableClosure]()
| |- warning: static property 'decodableClosures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'decodableClosures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'decodableClosures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var encodableClosures = [String: JavaEncodableClosure]()
17 | static var codableClassNames = [String: String]()
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaCoderConfig.swift:16:16: warning: static property 'encodableClosures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | static var decodableClosures = [String: JavaDecodableClosure]()
16 | static var encodableClosures = [String: JavaEncodableClosure]()
| |- warning: static property 'encodableClosures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'encodableClosures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'encodableClosures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static var codableClassNames = [String: String]()
18 |
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaCoderConfig.swift:17:16: warning: static property 'codableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static var decodableClosures = [String: JavaDecodableClosure]()
16 | static var encodableClosures = [String: JavaEncodableClosure]()
17 | static var codableClassNames = [String: String]()
| |- warning: static property 'codableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'codableClassNames' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'codableClassNames' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func RegisterType<T: Codable>(type: T.Type,
[40/46] Compiling JavaCoder JNIArgumentProtocol.swift
[41/46] Emitting module JavaCoder
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:14:5: warning: var 'IntegerClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | let ObjectClassname = "java/lang/Object"
13 | let ClassClassname = "java/lang/Class"
14 | var IntegerClassname = "java/lang/Integer"
| |- warning: var 'IntegerClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'IntegerClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'IntegerClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var ByteClassname = "java/lang/Byte"
16 | var ShortClassname = "java/lang/Short"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:15:5: warning: var 'ByteClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | let ClassClassname = "java/lang/Class"
14 | var IntegerClassname = "java/lang/Integer"
15 | var ByteClassname = "java/lang/Byte"
| |- warning: var 'ByteClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ByteClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ByteClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | var ShortClassname = "java/lang/Short"
17 | var LongClassname = "java/lang/Long"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:16:5: warning: var 'ShortClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | var IntegerClassname = "java/lang/Integer"
15 | var ByteClassname = "java/lang/Byte"
16 | var ShortClassname = "java/lang/Short"
| |- warning: var 'ShortClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ShortClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ShortClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | var LongClassname = "java/lang/Long"
18 | var BigIntegerClassname = "java/math/BigInteger"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:17:5: warning: var 'LongClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | var ByteClassname = "java/lang/Byte"
16 | var ShortClassname = "java/lang/Short"
17 | var LongClassname = "java/lang/Long"
| |- warning: var 'LongClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LongClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LongClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | var BigIntegerClassname = "java/math/BigInteger"
19 | var BooleanClassname = "java/lang/Boolean"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:18:5: warning: var 'BigIntegerClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | var ShortClassname = "java/lang/Short"
17 | var LongClassname = "java/lang/Long"
18 | var BigIntegerClassname = "java/math/BigInteger"
| |- warning: var 'BigIntegerClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BigIntegerClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BigIntegerClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | var BooleanClassname = "java/lang/Boolean"
20 | var StringClassname = "java/lang/String"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:19:5: warning: var 'BooleanClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | var LongClassname = "java/lang/Long"
18 | var BigIntegerClassname = "java/math/BigInteger"
19 | var BooleanClassname = "java/lang/Boolean"
| |- warning: var 'BooleanClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BooleanClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BooleanClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | var StringClassname = "java/lang/String"
21 | var ArrayListClassname = "java/util/ArrayList"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:20:5: warning: var 'StringClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | var BigIntegerClassname = "java/math/BigInteger"
19 | var BooleanClassname = "java/lang/Boolean"
20 | var StringClassname = "java/lang/String"
| |- warning: var 'StringClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'StringClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'StringClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | var ArrayListClassname = "java/util/ArrayList"
22 | let HashMapClassname = "java/util/HashMap"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:21:5: warning: var 'ArrayListClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | var BooleanClassname = "java/lang/Boolean"
20 | var StringClassname = "java/lang/String"
21 | var ArrayListClassname = "java/util/ArrayList"
| |- warning: var 'ArrayListClassname' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ArrayListClassname' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ArrayListClassname' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | let HashMapClassname = "java/util/HashMap"
23 | let SetClassname = "java/util/Set"
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:32:5: warning: var 'IntegerClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | // MARK: Java Classes
32 | var IntegerClass = try! JNI.getJavaClass("java/lang/Integer")
| |- warning: var 'IntegerClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'IntegerClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'IntegerClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | var ByteClass = try! JNI.getJavaClass("java/lang/Byte")
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:33:5: warning: var 'ByteClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | // MARK: Java Classes
32 | var IntegerClass = try! JNI.getJavaClass("java/lang/Integer")
33 | var ByteClass = try! JNI.getJavaClass("java/lang/Byte")
| |- warning: var 'ByteClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ByteClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ByteClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:34:5: warning: var 'ShortClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | var IntegerClass = try! JNI.getJavaClass("java/lang/Integer")
33 | var ByteClass = try! JNI.getJavaClass("java/lang/Byte")
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
| |- warning: var 'ShortClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ShortClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'ShortClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:35:5: warning: var 'LongClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | var ByteClass = try! JNI.getJavaClass("java/lang/Byte")
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
| |- warning: var 'LongClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LongClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LongClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:36:5: warning: var 'BigIntegerClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | var ShortClass = try! JNI.getJavaClass("java/lang/Short")
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
| |- warning: var 'BigIntegerClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BigIntegerClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BigIntegerClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:37:5: warning: var 'BooleanClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | var LongClass = try! JNI.getJavaClass("java/lang/Long")
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
| |- warning: var 'BooleanClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BooleanClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'BooleanClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:38:5: warning: var 'StringClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | var BigIntegerClass = try! JNI.getJavaClass("java/math/BigInteger")
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
| |- warning: var 'StringClass' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'StringClass' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'StringClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:39:5: warning: let 'ExceptionClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
37 | var BooleanClass = try! JNI.getJavaClass("java/lang/Boolean")
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
| |- warning: let 'ExceptionClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ExceptionClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:40:5: warning: let 'UriClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
38 | var StringClass = try! JNI.getJavaClass("java/lang/String")
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
| |- warning: let 'UriClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'UriClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:41:5: warning: let 'DateClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
39 | let ExceptionClass = try! JNI.getJavaClass("java/lang/Exception")
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
| |- warning: let 'DateClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DateClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:42:5: warning: let 'VMDebugClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
40 | let UriClass = try! JNI.getJavaClass("android/net/Uri")
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
| |- warning: let 'VMDebugClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'VMDebugClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:43:5: warning: let 'HashSetClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
41 | let DateClass = try! JNI.getJavaClass("java/util/Date")
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
| |- warning: let 'HashSetClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashSetClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
45 | let FloatClass = try! JNI.getJavaClass("java/lang/Float")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:44:5: warning: let 'ByteBufferClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
42 | let VMDebugClass = try! JNI.getJavaClass("dalvik/system/VMDebug")
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
| |- warning: let 'ByteBufferClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ByteBufferClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | let FloatClass = try! JNI.getJavaClass("java/lang/Float")
46 | let DoubleClass = try! JNI.getJavaClass("java/lang/Double")
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:45:5: warning: let 'FloatClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
43 | let HashSetClass = try! JNI.getJavaClass("java/util/HashSet")
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
45 | let FloatClass = try! JNI.getJavaClass("java/lang/Float")
| |- warning: let 'FloatClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'FloatClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | let DoubleClass = try! JNI.getJavaClass("java/lang/Double")
47 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:46:5: warning: let 'DoubleClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
44 | let ByteBufferClass = try! JNI.getJavaClass("java/nio/ByteBuffer")
45 | let FloatClass = try! JNI.getJavaClass("java/lang/Float")
46 | let DoubleClass = try! JNI.getJavaClass("java/lang/Double")
| |- warning: let 'DoubleClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DoubleClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | // MARK: Java methods
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:49:5: warning: let 'UriConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID?' (aka 'Optional<OpaquePointer>') may have shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | // MARK: Java methods
49 | let UriConstructor = JNI.api.GetStaticMethodID(JNI.env, UriClass, "parse", "(Ljava/lang/String;)Landroid/net/Uri;")
| |- warning: let 'UriConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID?' (aka 'Optional<OpaquePointer>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'UriConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let DateConstructor = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "<init>", sig: "(J)V")
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:50:5: warning: let 'DateConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
48 | // MARK: Java methods
49 | let UriConstructor = JNI.api.GetStaticMethodID(JNI.env, UriClass, "parse", "(Ljava/lang/String;)Landroid/net/Uri;")
50 | let DateConstructor = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "<init>", sig: "(J)V")
| |- warning: let 'DateConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DateConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:51:5: warning: let 'IntegerConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
49 | let UriConstructor = JNI.api.GetStaticMethodID(JNI.env, UriClass, "parse", "(Ljava/lang/String;)Landroid/net/Uri;")
50 | let DateConstructor = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "<init>", sig: "(J)V")
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
| |- warning: let 'IntegerConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'IntegerConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:52:5: warning: let 'ByteConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
50 | let DateConstructor = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "<init>", sig: "(J)V")
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
| |- warning: let 'ByteConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ByteConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:53:5: warning: let 'ShortConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
51 | let IntegerConstructor = try! JNI.getJavaMethod(forClass: IntegerClassname, method: "<init>", sig: "(I)V")
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
| |- warning: let 'ShortConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ShortConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:54:5: warning: let 'LongConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
52 | let ByteConstructor = try! JNI.getJavaMethod(forClass: ByteClassname, method: "<init>", sig: "(B)V")
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
| |- warning: let 'LongConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'LongConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:55:5: warning: let 'BigIntegerConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
53 | let ShortConstructor = try! JNI.getJavaMethod(forClass: ShortClassname, method: "<init>", sig: "(S)V")
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
| |- warning: let 'BigIntegerConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'BigIntegerConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
57 | let FloatConstructor = try! JNI.getJavaMethod(forClass: FloatClassname, method: "<init>", sig: "(F)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:56:5: warning: let 'BooleanConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
54 | let LongConstructor = try! JNI.getJavaMethod(forClass: LongClassname, method: "<init>", sig: "(J)V")
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
| |- warning: let 'BooleanConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'BooleanConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | let FloatConstructor = try! JNI.getJavaMethod(forClass: FloatClassname, method: "<init>", sig: "(F)V")
58 | let DoubleConstructor = try! JNI.getJavaMethod(forClass: DoubleClassname, method: "<init>", sig: "(D)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:57:5: warning: let 'FloatConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
55 | let BigIntegerConstructor = try! JNI.getJavaMethod(forClass: BigIntegerClassname, method: "<init>", sig: "(Ljava/lang/String;)V")
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
57 | let FloatConstructor = try! JNI.getJavaMethod(forClass: FloatClassname, method: "<init>", sig: "(F)V")
| |- warning: let 'FloatConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'FloatConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | let DoubleConstructor = try! JNI.getJavaMethod(forClass: DoubleClassname, method: "<init>", sig: "(D)V")
59 |
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:58:5: warning: let 'DoubleConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
56 | let BooleanConstructor = try! JNI.getJavaMethod(forClass: BooleanClassname, method: "<init>", sig: "(Z)V")
57 | let FloatConstructor = try! JNI.getJavaMethod(forClass: FloatClassname, method: "<init>", sig: "(F)V")
58 | let DoubleConstructor = try! JNI.getJavaMethod(forClass: DoubleClassname, method: "<init>", sig: "(D)V")
| |- warning: let 'DoubleConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DoubleConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | let ObjectToStringMethod = try! JNI.getJavaMethod(forClass: "java/lang/Object", method: "toString", sig: "()Ljava/lang/String;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:60:5: warning: let 'ObjectToStringMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
58 | let DoubleConstructor = try! JNI.getJavaMethod(forClass: DoubleClassname, method: "<init>", sig: "(D)V")
59 |
60 | let ObjectToStringMethod = try! JNI.getJavaMethod(forClass: "java/lang/Object", method: "toString", sig: "()Ljava/lang/String;")
| |- warning: let 'ObjectToStringMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ObjectToStringMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | let ClassGetNameMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getName", sig: "()L\(StringClassname);")
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:61:5: warning: let 'ClassGetNameMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | let ObjectToStringMethod = try! JNI.getJavaMethod(forClass: "java/lang/Object", method: "toString", sig: "()Ljava/lang/String;")
61 | let ClassGetNameMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getName", sig: "()L\(StringClassname);")
| |- warning: let 'ClassGetNameMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ClassGetNameMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:62:5: warning: let 'ClassGetFieldMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
60 | let ObjectToStringMethod = try! JNI.getJavaMethod(forClass: "java/lang/Object", method: "toString", sig: "()Ljava/lang/String;")
61 | let ClassGetNameMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getName", sig: "()L\(StringClassname);")
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
| |- warning: let 'ClassGetFieldMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ClassGetFieldMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:63:5: warning: let 'FieldGetTypedMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
61 | let ClassGetNameMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getName", sig: "()L\(StringClassname);")
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
| |- warning: let 'FieldGetTypedMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'FieldGetTypedMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:64:5: warning: let 'NumberByteValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
62 | let ClassGetFieldMethod = try! JNI.getJavaMethod(forClass: ClassClassname, method: "getField", sig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;")
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
| |- warning: let 'NumberByteValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberByteValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:65:5: warning: let 'NumberShortValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
63 | let FieldGetTypedMethod = try! JNI.getJavaMethod(forClass: "java/lang/reflect/Field", method: "getType", sig: "()L\(ClassClassname);")
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
| |- warning: let 'NumberShortValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberShortValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:66:5: warning: let 'NumberIntValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
64 | let NumberByteValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "byteValue", sig: "()B")
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
| |- warning: let 'NumberIntValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberIntValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:67:5: warning: let 'NumberLongValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
65 | let NumberShortValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "shortValue", sig: "()S")
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
| |- warning: let 'NumberLongValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberLongValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:68:5: warning: let 'NumberFloatValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
66 | let NumberIntValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "intValue", sig: "()I")
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
| |- warning: let 'NumberFloatValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberFloatValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:69:5: warning: let 'NumberDoubleValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
67 | let NumberLongValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "longValue", sig: "()J")
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
| |- warning: let 'NumberDoubleValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberDoubleValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:70:5: warning: let 'NumberBooleanValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
68 | let NumberFloatValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "floatValue", sig: "()F")
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
| |- warning: let 'NumberBooleanValueMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'NumberBooleanValueMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:71:5: warning: let 'HashMapPutMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
69 | let NumberDoubleValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Number", method: "doubleValue", sig: "()D")
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
| |- warning: let 'HashMapPutMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashMapPutMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:72:5: warning: let 'HashMapGetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
70 | let NumberBooleanValueMethod = try! JNI.getJavaMethod(forClass: "java/lang/Boolean", method: "booleanValue", sig: "()Z")
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
| |- warning: let 'HashMapGetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashMapGetMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:73:5: warning: let 'HashMapKeySetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
71 | let HashMapPutMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "put", sig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
| |- warning: let 'HashMapKeySetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashMapKeySetMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:74:5: warning: let 'HashMapSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
72 | let HashMapGetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "get", sig: "(L\(ObjectClassname);)L\(ObjectClassname);")
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
| |- warning: let 'HashMapSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'HashMapSizeMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:75:5: warning: let 'SetToArrayMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
73 | let HashMapKeySetMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "keySet", sig: "()L\(SetClassname);")
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
| |- warning: let 'SetToArrayMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'SetToArrayMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:76:5: warning: let 'ArrayListGetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
74 | let HashMapSizeMethod = try! JNI.getJavaMethod(forClass: HashMapClassname, method: "size", sig: "()I")
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
| |- warning: let 'ArrayListGetMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ArrayListGetMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:77:5: warning: let 'ArrayListSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
75 | let SetToArrayMethod = try! JNI.getJavaMethod(forClass: SetClassname, method: "toArray", sig: "()[L\(ObjectClassname);")
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
| |- warning: let 'ArrayListSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ArrayListSizeMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:78:5: warning: let 'CollectionAddMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
76 | let ArrayListGetMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "get", sig: "(I)L\(ObjectClassname);")
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
| |- warning: let 'CollectionAddMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'CollectionAddMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:79:5: warning: let 'CollectionIteratorMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
77 | let ArrayListSizeMethod = try! JNI.getJavaMethod(forClass: ArrayListClassname, method: "size", sig: "()I")
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
| |- warning: let 'CollectionIteratorMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'CollectionIteratorMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:80:5: warning: let 'CollectionSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
78 | let CollectionAddMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "add", sig: "(Ljava/lang/Object;)Z")
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
| |- warning: let 'CollectionSizeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'CollectionSizeMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:81:5: warning: let 'IteratorNextMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
79 | let CollectionIteratorMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "iterator", sig: "()Ljava/util/Iterator;")
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
| |- warning: let 'IteratorNextMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'IteratorNextMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:82:5: warning: let 'DateGetTimeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
80 | let CollectionSizeMethod = try! JNI.getJavaMethod(forClass: "java/util/Collection", method: "size", sig: "()I")
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
| |- warning: let 'DateGetTimeMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'DateGetTimeMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
84 | let ByteBufferArray = try! JNI.getJavaMethod(forClass: "java/nio/ByteBuffer", method: "array", sig: "()[B")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:83:5: warning: let 'VMDebugDumpReferenceTablesMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID?' (aka 'Optional<OpaquePointer>') may have shared mutable state; this is an error in the Swift 6 language mode
81 | let IteratorNextMethod = try! JNI.getJavaMethod(forClass: "java/util/Iterator", method: "next", sig: "()Ljava/lang/Object;")
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
| |- warning: let 'VMDebugDumpReferenceTablesMethod' is not concurrency-safe because non-'Sendable' type 'jmethodID?' (aka 'Optional<OpaquePointer>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'VMDebugDumpReferenceTablesMethod' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | let ByteBufferArray = try! JNI.getJavaMethod(forClass: "java/nio/ByteBuffer", method: "array", sig: "()[B")
85 | let ByteBufferWrap = JNI.api.GetStaticMethodID(JNI.env, ByteBufferClass, "wrap", "([B)Ljava/nio/ByteBuffer;")!
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:84:5: warning: let 'ByteBufferArray' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
82 | let DateGetTimeMethod = try! JNI.getJavaMethod(forClass: "java/util/Date", method: "getTime", sig:"()J")
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
84 | let ByteBufferArray = try! JNI.getJavaMethod(forClass: "java/nio/ByteBuffer", method: "array", sig: "()[B")
| |- warning: let 'ByteBufferArray' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ByteBufferArray' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | let ByteBufferWrap = JNI.api.GetStaticMethodID(JNI.env, ByteBufferClass, "wrap", "([B)Ljava/nio/ByteBuffer;")!
86 |
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:85:5: warning: let 'ByteBufferWrap' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
83 | let VMDebugDumpReferenceTablesMethod = JNI.api.GetStaticMethodID(JNI.env, VMDebugClass, "dumpReferenceTables", "()V")
84 | let ByteBufferArray = try! JNI.getJavaMethod(forClass: "java/nio/ByteBuffer", method: "array", sig: "()[B")
85 | let ByteBufferWrap = JNI.api.GetStaticMethodID(JNI.env, ByteBufferClass, "wrap", "([B)Ljava/nio/ByteBuffer;")!
| |- warning: let 'ByteBufferWrap' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ByteBufferWrap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | fileprivate extension NSLock {
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:98:17: warning: var 'javaClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 | }
97 |
98 | fileprivate var javaClasses = [String: jclass]()
| |- warning: var 'javaClasses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'javaClasses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'javaClasses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | fileprivate var javaMethods = [String: jmethodID]()
100 | fileprivate var javaStaticMethods = [String: jmethodID]()
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:99:17: warning: var 'javaMethods' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
97 |
98 | fileprivate var javaClasses = [String: jclass]()
99 | fileprivate var javaMethods = [String: jmethodID]()
| |- warning: var 'javaMethods' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'javaMethods' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'javaMethods' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | fileprivate var javaStaticMethods = [String: jmethodID]()
101 | fileprivate var javaFields = [String: jmethodID]()
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:100:17: warning: var 'javaStaticMethods' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
98 | fileprivate var javaClasses = [String: jclass]()
99 | fileprivate var javaMethods = [String: jmethodID]()
100 | fileprivate var javaStaticMethods = [String: jmethodID]()
| |- warning: var 'javaStaticMethods' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'javaStaticMethods' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'javaStaticMethods' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | fileprivate var javaFields = [String: jmethodID]()
102 |
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JNICore+JavaCoder.swift:101:17: warning: var 'javaFields' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 | fileprivate var javaMethods = [String: jmethodID]()
100 | fileprivate var javaStaticMethods = [String: jmethodID]()
101 | fileprivate var javaFields = [String: jmethodID]()
| |- warning: var 'javaFields' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'javaFields' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'javaFields' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 | fileprivate let javaClassesLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaBridgeable.swift:155:17: warning: let 'javaExceptionClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
153 |
154 | // Error can't implement JavaBridgeable protocol
155 | fileprivate let javaExceptionClass = JNI.GlobalFindClass("java/lang/Exception")!
| |- warning: let 'javaExceptionClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'javaExceptionClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
156 | fileprivate let javaExceptionConstructor = try! JNI.getJavaMethod(forClass: "java/lang/Exception",
157 | method: "<init>",
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaBridgeable.swift:156:17: warning: let 'javaExceptionConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
154 | // Error can't implement JavaBridgeable protocol
155 | fileprivate let javaExceptionClass = JNI.GlobalFindClass("java/lang/Exception")!
156 | fileprivate let javaExceptionConstructor = try! JNI.getJavaMethod(forClass: "java/lang/Exception",
| |- warning: let 'javaExceptionConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'javaExceptionConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 | method: "<init>",
158 | sig: "(Ljava/lang/String;)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaCoderConfig.swift:15:16: warning: static property 'decodableClosures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | private static let closuresLock = NSRecursiveLock()
14 |
15 | static var decodableClosures = [String: JavaDecodableClosure]()
| |- warning: static property 'decodableClosures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'decodableClosures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'decodableClosures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var encodableClosures = [String: JavaEncodableClosure]()
17 | static var codableClassNames = [String: String]()
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaCoderConfig.swift:16:16: warning: static property 'encodableClosures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | static var decodableClosures = [String: JavaDecodableClosure]()
16 | static var encodableClosures = [String: JavaEncodableClosure]()
| |- warning: static property 'encodableClosures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'encodableClosures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'encodableClosures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static var codableClassNames = [String: String]()
18 |
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaCoderConfig.swift:17:16: warning: static property 'codableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static var decodableClosures = [String: JavaDecodableClosure]()
16 | static var encodableClosures = [String: JavaEncodableClosure]()
17 | static var codableClassNames = [String: String]()
| |- warning: static property 'codableClassNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'codableClassNames' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'codableClassNames' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func RegisterType<T: Codable>(type: T.Type,
[42/46] Compiling JavaCoder JavaEncoder.swift
[43/46] Compiling JavaCoder JavaPrimitive.swift
[44/46] Compiling JavaCoder JavaCodingError.swift
[45/46] Compiling JavaCoder JavaDecoder.swift
[46/46] Compiling JavaCoder JavaBridgeable.swift
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaBridgeable.swift:155:17: warning: let 'javaExceptionClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
153 |
154 | // Error can't implement JavaBridgeable protocol
155 | fileprivate let javaExceptionClass = JNI.GlobalFindClass("java/lang/Exception")!
| |- warning: let 'javaExceptionClass' is not concurrency-safe because non-'Sendable' type 'jclass' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'javaExceptionClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
156 | fileprivate let javaExceptionConstructor = try! JNI.getJavaMethod(forClass: "java/lang/Exception",
157 | method: "<init>",
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/Sources/JavaCoder/JavaBridgeable.swift:156:17: warning: let 'javaExceptionConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
154 | // Error can't implement JavaBridgeable protocol
155 | fileprivate let javaExceptionClass = JNI.GlobalFindClass("java/lang/Exception")!
156 | fileprivate let javaExceptionConstructor = try! JNI.getJavaMethod(forClass: "java/lang/Exception",
| |- warning: let 'javaExceptionConstructor' is not concurrency-safe because non-'Sendable' type 'jmethodID' (aka 'OpaquePointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'javaExceptionConstructor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 | method: "<init>",
158 | sig: "(Ljava/lang/String;)V")
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
| `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
Build complete! (12.51s)
Fetching https://github.com/swiftlang/swift-java-jni-core.git
Fetching https://github.com/readdle/swift-anycodable.git
[1/92] Fetching swift-anycodable
[31/709] Fetching swift-anycodable, swift-java-jni-core
Fetched https://github.com/readdle/swift-anycodable.git from cache (0.94s)
Fetched https://github.com/swiftlang/swift-java-jni-core.git from cache (0.94s)
Computing version for https://github.com/swiftlang/swift-java-jni-core.git
Computed https://github.com/swiftlang/swift-java-jni-core.git at 0.5.1 (1.50s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (3.42s)
Creating working copy for https://github.com/swiftlang/swift-java-jni-core.git
Working copy of https://github.com/swiftlang/swift-java-jni-core.git resolved at 0.5.1
Creating working copy for https://github.com/readdle/swift-anycodable.git
Working copy of https://github.com/readdle/swift-anycodable.git resolved at 1.0.3
Build complete.
{
"dependencies" : [
{
"identity" : "swift-java-jni-core",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.1",
"upper_bound" : "0.6.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-java-jni-core.git"
},
{
"identity" : "swift-anycodable",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.2",
"upper_bound" : "1.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/readdle/swift-anycodable.git"
}
],
"manifest_display_name" : "JavaCoder",
"name" : "JavaCoder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "JavaCoder",
"targets" : [
"JavaCoder"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "java_swift",
"targets" : [
"java_swift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "java_swift",
"module_type" : "SwiftTarget",
"name" : "java_swift",
"path" : "Sources/java_swift",
"product_dependencies" : [
"SwiftJavaJNICore"
],
"product_memberships" : [
"JavaCoder",
"java_swift"
],
"sources" : [
"JNIBootstrap.swift",
"JNICore.swift",
"JNIObject.swift"
],
"type" : "library"
},
{
"c99name" : "JavaCoderTests",
"module_type" : "SwiftTarget",
"name" : "JavaCoderTests",
"path" : "Tests/JavaCoderTests",
"sources" : [
"FindClassTests.swift"
],
"target_dependencies" : [
"java_swift"
],
"type" : "test"
},
{
"c99name" : "JavaCoder",
"module_type" : "SwiftTarget",
"name" : "JavaCoder",
"path" : "Sources/JavaCoder",
"product_dependencies" : [
"AnyCodable"
],
"product_memberships" : [
"JavaCoder"
],
"sources" : [
"JNIArgumentProtocol.swift",
"JNICore+JavaCoder.swift",
"JNIObject+JavaCoder.swift",
"JavaBridgeable.swift",
"JavaCoderConfig.swift",
"JavaCodingError.swift",
"JavaDecoder.swift",
"JavaEncoder.swift",
"JavaPrimitive.swift"
],
"target_dependencies" : [
"java_swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Done.