summaryrefslogtreecommitdiffstats
path: root/c++/src/H5AbstractDs.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-01-15 15:53:33 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-01-15 15:53:33 (GMT)
commit0d68aa89cede07df85eca611510a6271fbbb1d8a (patch)
treebdef31cdbdb77168e26bd4e2ed0eb12665dada44 /c++/src/H5AbstractDs.cpp
parentc09393ed0a2624cc04556249ef5549c2485efe8f (diff)
downloadhdf5-0d68aa89cede07df85eca611510a6271fbbb1d8a.zip
hdf5-0d68aa89cede07df85eca611510a6271fbbb1d8a.tar.gz
hdf5-0d68aa89cede07df85eca611510a6271fbbb1d8a.tar.bz2
[svn-r28905] Purpose: Fix user reported problem
Description: User Adam Rosenberger reported a failure when using the member function AbstractDs::getArrayType(). This problem was caused by missing initialization of the ArrayType's members in some cases. Solution: - Added ArrayType::setArrayInfo() to retrieve rank and dimensions of an array and store them in memory for easy access. - Re-factored a few functions to use the new function. - We'll give him 1.8.16 patch Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5AbstractDs.cpp')
-rw-r--r--c++/src/H5AbstractDs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/c++/src/H5AbstractDs.cpp b/c++/src/H5AbstractDs.cpp
index 06b3e22..4e9a4d5 100644
--- a/c++/src/H5AbstractDs.cpp
+++ b/c++/src/H5AbstractDs.cpp
@@ -141,8 +141,11 @@ ArrayType AbstractDs::getArrayType() const
// depending on which object invokes getArrayType. Then, create and
// return the ArrayType object
try {
+ // Create ArrayType and set values this way to work around the
+ // problem described in the JIRA issue HDFFV-7947
ArrayType arraytype;
f_DataType_setId(&arraytype, p_get_type());
+ arraytype.setArrayInfo();
return(arraytype);
}
catch (DataSetIException E) {