< prev index next >

src/java.base/share/native/include/jni.h

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 1996, 2026, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this

@@ -781,10 +781,15 @@
      /* Large UTF8 Support */
  
      jlong (JNICALL *GetStringUTFLengthAsLong)
        (JNIEnv *env, jstring str);
  
+     /* Value classes */
+ 
+     jboolean (JNICALL *IsValueObject)
+       (JNIEnv* env, jobject obj);
+ 
  };
  
  /*
   * We use inlined functions for C++ so that programmers can write:
   *

@@ -1888,10 +1893,16 @@
  
      jboolean IsVirtualThread(jobject obj) {
          return functions->IsVirtualThread(this, obj);
      }
  
+     /* Value classes */
+ 
+     jboolean IsValueObject(jobject obj) {
+         return functions->IsValueObject(this, obj);
+     }
+ 
  #endif /* __cplusplus */
  };
  
  /*
   * optionString may be any option accepted by the JVM, or one of the
< prev index next >