Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SDO-1.0
-
None
-
n/a
Description
According to the SDO for Java specification v. 2.1.0, conversion of string properties to byte arrays and from byte array properties to string is a supported conversion type. This is confirmed on page 138 of the spec. Additionally, sections 8.1.4 and 8.1.5 describe the behavior of such conversions. When an attempt is made to perform one of the following functions, though, a ClassCastException is thrown:
dataObj.getBytes("stringPropName");
dataObj.set("stringPropName", byteArrayValue);
dataObj.set("byteArrayPropName", stringValue);
The dataObj.getString("byteArrayPropName") method seems to be functioning correctly.