Skip to content

Commit 7e7ad2a

Browse files
committed
Require only JNI version 1.6
Based on our uses of the JNI APIs, the JavaKit path (Swift wrapping Java classes) only requires JNI as of Java 1.6, far earlier than the JDK 21 we had previously required.
1 parent 091d49f commit 7e7ad2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JavaKitVM/JavaVirtualMachine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public final class JavaVirtualMachine: @unchecked Sendable {
4141
var jvm: JavaVMPointer? = nil
4242
var environment: UnsafeMutableRawPointer? = nil
4343
var vmArgs = JavaVMInitArgs()
44-
vmArgs.version = JNI_VERSION_21
44+
vmArgs.version = JNI_VERSION_1_6
4545
vmArgs.ignoreUnrecognized = jboolean(ignoreUnrecognized ? JNI_TRUE : JNI_FALSE)
4646

4747
// Construct the complete list of VM options.

0 commit comments

Comments
 (0)