summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-08-03 17:50:40 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-08-03 17:50:40 (GMT)
commit51a5d112ade5dd3de0b9e62a38ab4dc888bf5cf5 (patch)
tree9099e56c3e153217d3d0a65ff7b5d224f8884a8f /java
parent3e7979902ade13ba8f37e020e5ae95f03a82b0f9 (diff)
parentd7d562339911b1f71c43cb293f90d7d67d33e949 (diff)
downloadhdf5-51a5d112ade5dd3de0b9e62a38ab4dc888bf5cf5.zip
hdf5-51a5d112ade5dd3de0b9e62a38ab4dc888bf5cf5.tar.gz
hdf5-51a5d112ade5dd3de0b9e62a38ab4dc888bf5cf5.tar.bz2
Merge pull request #1174 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_10 to hdf5_1_10
* commit 'd7d562339911b1f71c43cb293f90d7d67d33e949': Change exception text Move unimplemented exception throw to just one function
Diffstat (limited to 'java')
-rw-r--r--java/src/jni/h5dImp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/jni/h5dImp.c b/java/src/jni/h5dImp.c
index 42bfa1e..d7f1b57 100644
--- a/java/src/jni/h5dImp.c
+++ b/java/src/jni/h5dImp.c
@@ -1343,9 +1343,6 @@ Java_hdf_hdf5lib_H5_H5DwriteVL
htri_t isVlenStr = 0;
htri_t isComplex = 0;
- h5unimplemented(env, "H5DwriteVL: not implemented");
- return -1;
-#ifdef notdef
if (buf == NULL) {
h5nullArgument(env, "H5DwriteVL: buf is NULL");
} /* end if */
@@ -1365,10 +1362,14 @@ Java_hdf_hdf5lib_H5_H5DwriteVL
isVlenStr = 1; /* strings created by H5Tvlen_create(H5T_C_S1) */
}
if (isStr == 0 || isComplex>0 || isVlenStr) {
+ h5unimplemented(env, "H5DwriteVL: VL types, which are not string type, not implemented");
+ status = -1;
+#ifdef notdef
status = H5DwriteVL_asstr(env, (hid_t)dataset_id, (hid_t)mem_type_id,
(hid_t)mem_space_id, (hid_t)file_space_id,
(hid_t)xfer_plist_id, buf);
- }
+#endif
+ }
else if (isStr > 0) {
status = H5DwriteVL_str(env, (hid_t)dataset_id, (hid_t)mem_type_id,
(hid_t)mem_space_id, (hid_t)file_space_id,
@@ -1377,7 +1378,6 @@ Java_hdf_hdf5lib_H5_H5DwriteVL
} /* end else */
return (jint)status;
-#endif
} /* end Java_hdf_hdf5lib_H5_H5Dwrite_1VL */
herr_t