changeset 13540:8ed709fbba55

Add JNI_GetModule()
author hseigel
date Wed, 29 Jul 2015 08:41:11 -0400
parents b5e4097f6a23
children 6b1e77f112fc
files src/java.base/share/native/include/jni.h
diffstat 1 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/native/include/jni.h	Wed Jul 29 13:25:26 2015 +0100
+++ b/src/java.base/share/native/include/jni.h	Wed Jul 29 08:41:11 2015 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2015, 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
@@ -765,6 +765,12 @@
 
     jobjectRefType (JNICALL *GetObjectRefType)
         (JNIEnv* env, jobject obj);
+
+    /* Module Features */
+
+    jobject (JNICALL *GetModule)
+       (JNIEnv* env, jclass clazz);
+
 };
 
 /*
@@ -1857,6 +1863,13 @@
         return functions->GetObjectRefType(this, obj);
     }
 
+    /* Module Features */
+
+    jobject GetModule(jclass clazz) {
+        return functions->GetModule(this, clazz);
+    }
+
+
 #endif /* __cplusplus */
 };