diff --git a/CHANGELOG.md b/CHANGELOG.md index 2109de2..21e6fe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- `JNI_VERSION_9`, `JNI_VERSION_10`, `JNI_VERSION_19`, `JNI_VERSION_20` and `JNI_VERSION_21` constants - GetModule was added to `JNINativeInterface` ([#22](https://github.com/jni-rs/jni-sys/pull/22)) +- IsVirtualThread was added to `JNINativeInterface` ([#32](https://github.com/jni-rs/jni-sys/pull/32)) ### Fixed diff --git a/src/lib.rs b/src/lib.rs index c53ea94..8b73665 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1306,6 +1306,9 @@ pub struct JNINativeInterface_ { unsafe extern "system" fn(env: *mut JNIEnv, obj: jobject) -> jobjectRefType, #[jni_added("9")] pub GetModule: unsafe extern "system" fn(env: *mut JNIEnv, clazz: jclass) -> jobject, + + #[jni_added("19")] + pub IsVirtualThread: unsafe extern "system" fn(env: *mut JNIEnv, obj: jobject) -> jboolean, } #[repr(C)] diff --git a/tests/jni-to-union.rs b/tests/jni-to-union.rs index 4da7301..1d19c60 100644 --- a/tests/jni-to-union.rs +++ b/tests/jni-to-union.rs @@ -40,7 +40,7 @@ fn jni_to_union() { ); } -const NUM_JNI_ENV_MEMBERS: usize = 234; +const NUM_JNI_ENV_MEMBERS: usize = 235; #[test] fn jni_env_union() { assert_eq!(