diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-01-09 18:55:31 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-01-09 18:55:31 (GMT) |
commit | 9b0281736ca488387afd8a301e36e6f5a5315c4a (patch) | |
tree | b490d3cf90f67945b8de5387d7543b7503f82db9 /java/src/jni/h5pImp.c | |
parent | 7b39e544c05f761698be95e17e8d4dbb396cefe4 (diff) | |
download | hdf5-9b0281736ca488387afd8a301e36e6f5a5315c4a.zip hdf5-9b0281736ca488387afd8a301e36e6f5a5315c4a.tar.gz hdf5-9b0281736ca488387afd8a301e36e6f5a5315c4a.tar.bz2 |
Fix deprecated H5Pget_version
Diffstat (limited to 'java/src/jni/h5pImp.c')
-rw-r--r-- | java/src/jni/h5pImp.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/java/src/jni/h5pImp.c b/java/src/jni/h5pImp.c index 19f9640..ac21d1d 100644 --- a/java/src/jni/h5pImp.c +++ b/java/src/jni/h5pImp.c @@ -134,45 +134,6 @@ Java_hdf_hdf5lib_H5__1H5Pcopy /* * Class: hdf_hdf5lib_H5 - * Method: H5Pget_version - * Signature: (J[I)I - */ -JNIEXPORT jint JNICALL -Java_hdf_hdf5lib_H5_H5Pget_1version - (JNIEnv *env, jclass clss, jlong plist, jintArray version_info) -{ - herr_t status = -1; - jint *theArray; - jboolean isCopy; - - if (version_info == NULL) { - h5nullArgument(env, "H5Pget_version: version_info input array is NULL"); - } /* end if */ - else if (ENVPTR->GetArrayLength(ENVPAR version_info) < 4) { - h5badArgument(env, "H5Pget_version: version_info input array < 4"); - } /* end else if */ - else { - theArray = (jint *)ENVPTR->GetIntArrayElements(ENVPAR version_info, &isCopy); - if (theArray == NULL) { - h5JNIFatalError(env, "H5Pget_version: version_info not pinned"); - } /* end if */ - else { - status = H5Pget_version((hid_t)plist, (unsigned *)&(theArray[0]), - (unsigned *)&(theArray[1]), (unsigned *)&(theArray[2]), (unsigned *)&(theArray[3])); - if (status < 0) { - ENVPTR->ReleaseIntArrayElements(ENVPAR version_info, theArray, JNI_ABORT); - h5libraryError(env); - } /* end if */ - else - ENVPTR->ReleaseIntArrayElements(ENVPAR version_info, theArray, 0); - } /* end else */ - } /* end else */ - - return (jint)status; -} /* end Java_hdf_hdf5lib_H5_H5Pget_1version */ - -/* - * Class: hdf_hdf5lib_H5 * Method: H5Pset_userblock * Signature: (JJ)I */ |