summaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-01-09 19:07:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-01-09 19:07:03 (GMT)
commit46f63b0faafe574ca2a32380ea85cac8206b1028 (patch)
tree020ccec62eed65d6270d503517bd8b6f26fc3780 /java/src
parent13f64f251c041ca1963c08b0223f462394ac6288 (diff)
downloadhdf5-46f63b0faafe574ca2a32380ea85cac8206b1028.zip
hdf5-46f63b0faafe574ca2a32380ea85cac8206b1028.tar.gz
hdf5-46f63b0faafe574ca2a32380ea85cac8206b1028.tar.bz2
Fix deprecated H5Pget_version
Diffstat (limited to 'java/src')
-rw-r--r--java/src/hdf/hdf5lib/H5.java2
-rw-r--r--java/src/jni/h5pImp.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/java/src/hdf/hdf5lib/H5.java b/java/src/hdf/hdf5lib/H5.java
index eb7cc7b..40a6358 100644
--- a/java/src/hdf/hdf5lib/H5.java
+++ b/java/src/hdf/hdf5lib/H5.java
@@ -7700,6 +7700,8 @@ public class H5 implements java.io.Serializable {
* - version_info is null.
* @exception IllegalArgumentException
* - version_info is illegal.
+ *
+ * @deprecated As of HDF5 1.10.0 in favor of H5Fget_info.
**/
public synchronized static native int H5Pget_version(long plist, int[] version_info) throws HDF5LibraryException,
NullPointerException, IllegalArgumentException;
diff --git a/java/src/jni/h5pImp.c b/java/src/jni/h5pImp.c
index 19f9640..e21ba67 100644
--- a/java/src/jni/h5pImp.c
+++ b/java/src/jni/h5pImp.c
@@ -142,6 +142,9 @@ Java_hdf_hdf5lib_H5_H5Pget_1version
(JNIEnv *env, jclass clss, jlong plist, jintArray version_info)
{
herr_t status = -1;
+#ifdef H5_NO_DEPRECATED_SYMBOLS
+ h5unimplemented(env, "H5Pget_version: not implemented");
+#else
jint *theArray;
jboolean isCopy;
@@ -167,7 +170,7 @@ Java_hdf_hdf5lib_H5_H5Pget_1version
ENVPTR->ReleaseIntArrayElements(ENVPAR version_info, theArray, 0);
} /* end else */
} /* end else */
-
+#endif
return (jint)status;
} /* end Java_hdf_hdf5lib_H5_H5Pget_1version */