diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-06-18 18:20:47 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-06-18 18:20:47 (GMT) |
commit | 00f39b23c11ce989351125496381cdcc4c54b16f (patch) | |
tree | 216384cbec985dc5ab05be367ae505dc185076fc /java/src/jni/h5pFCPLImp.c | |
parent | 8e62f1fe7b38b630f1a41007a03341cb66dec4b3 (diff) | |
download | hdf5-00f39b23c11ce989351125496381cdcc4c54b16f.zip hdf5-00f39b23c11ce989351125496381cdcc4c54b16f.tar.gz hdf5-00f39b23c11ce989351125496381cdcc4c54b16f.tar.bz2 |
HDFFV-11111 add unimplemented errors in JNI
Diffstat (limited to 'java/src/jni/h5pFCPLImp.c')
-rw-r--r-- | java/src/jni/h5pFCPLImp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/src/jni/h5pFCPLImp.c b/java/src/jni/h5pFCPLImp.c index cc7c264..e056fa8 100644 --- a/java/src/jni/h5pFCPLImp.c +++ b/java/src/jni/h5pFCPLImp.c @@ -40,13 +40,20 @@ JNIEXPORT jint JNICALL Java_hdf_hdf5lib_H5_H5Pget_1version (JNIEnv *env, jclass clss, jlong plist, jintArray version_info) { +#ifdef H5_NO_DEPRECATED_SYMBOLS jboolean isCopy; jsize arrLen; jint *theArray = NULL; +#endif herr_t status = FAIL; UNUSED(clss); +#ifdef H5_NO_DEPRECATED_SYMBOLS + UNUSED(loc_id); + UNUSED(name); + H5_UNIMPLEMENTED(ENVONLY, "H5Aopen_name: not implemented"); +#else if (NULL == version_info) H5_NULL_ARGUMENT_ERROR(ENVONLY, "H5Pget_version: version_info input array is NULL"); @@ -62,10 +69,13 @@ Java_hdf_hdf5lib_H5_H5Pget_1version if ((status = H5Pget_version((hid_t)plist, (unsigned *)&(theArray[0]), (unsigned *)&(theArray[1]), (unsigned *)&(theArray[2]), (unsigned *)&(theArray[3]))) < 0) H5_LIBRARY_ERROR(ENVONLY); +#endif done: +#ifdef H5_NO_DEPRECATED_SYMBOLS if (theArray) UNPIN_INT_ARRAY(ENVONLY, version_info, theArray, (status < 0) ? JNI_ABORT : 0); +#endif return (jint)status; } /* end Java_hdf_hdf5lib_H5_H5Pget_1version */ |