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

Print this page

        

*** 1,7 **** /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 768,778 **** /* Module Features */ jobject (JNICALL *GetModule) (JNIEnv* env, jclass clazz); ! }; /* * We use inlined functions for C++ so that programmers can write: * --- 768,779 ---- /* Module Features */ jobject (JNICALL *GetModule) (JNIEnv* env, jclass clazz); ! jsize (JNICALL *GetAllModules) ! (JNIEnv* env, jobjectArray *modules); }; /* * We use inlined functions for C++ so that programmers can write: *
*** 1866,1877 **** /* Module Features */ jobject GetModule(jclass clazz) { return functions->GetModule(this, clazz); } - #endif /* __cplusplus */ }; typedef struct JavaVMOption { char *optionString; --- 1867,1880 ---- /* Module Features */ jobject GetModule(jclass clazz) { return functions->GetModule(this, clazz); } + jsize GetAllModules(jobjectArray *modules) { + return functions->GetAllModules(this, modules); + } #endif /* __cplusplus */ }; typedef struct JavaVMOption { char *optionString;