<BUG>hdfDataspaceId = H5.H5Screate_simple(shape.length, shape, null);hdfPropertiesId = H5.H5Pcreate(HDF5Constants.H5P_DATASET_CREATE);</BUG><CONTEXT>long hdfDatatypeId = -1;long hdfDataspaceId = -1;long hdfPropertiesId = -1;try {hdfDatatypeId = H5.H5Tcopy(hdfType);<extra_id_0>if (stringDataset) {H5.H5Tset_cset(hdfDatatypeId, HDF5Constants.H5T_CSET_UTF8);H5.H5Tset_size(hdfDatatypeId, HDF5Constants.H5T_VARIABLE);</CONTEXT>
hdfDataspaceId = shape.length == 0 ? H5.H5Screate(HDF5Constants.H5S_SCALAR) : H5.H5Screate_simple(shape.length, shape, null);hdfPropertiesId = H5.H5Pcreate(HDF5Constants.H5P_DATASET_CREATE);