summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-08-03 14:01:29 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-08-03 14:01:29 (GMT)
commitd47ffdb828aa0d5139ea660705ef5882767f33f0 (patch)
tree3ffc0b0d26ddea9f3718659ada4614a7ff27b5c1 /java
parent3e7979902ade13ba8f37e020e5ae95f03a82b0f9 (diff)
downloadhdf5-d47ffdb828aa0d5139ea660705ef5882767f33f0.zip
hdf5-d47ffdb828aa0d5139ea660705ef5882767f33f0.tar.gz
hdf5-d47ffdb828aa0d5139ea660705ef5882767f33f0.tar.bz2
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..5d214d7 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: 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