-
Key: DDSJAVA-36
-
Legacy Issue Number: 16588
-
Status: closed
-
Source: ZettaScale Technology ( Angelo Corsaro, PhD.)
-
Summary:
The Sample Class as defined in the Beta1 of the DDS-PSM-Java does not define
a method "isValid(): Boolean" to check wether the data is actually valid. This is a simple
to fix oversight.Resolution
---------------
Add an "isValid () : Boolean" method to the Sample Class -
Reported: DDS-Java 1.0b1 — Tue, 11 Oct 2011 04:00 GMT
-
Disposition: Resolved — DDS-Java 1.0b2
-
Disposition Summary:
This issue is closed without any changes. The Sample class does provide a method to check whether the data is valid. There is no oversight. As described in section 7.6.2, “Sample Interface”:
Each sample is represented by an instance of the org.omg.dds.sub.Sample interface. It provides its data via a getData method; if there is no valid data (corresponding to a false value for SampleInfo.valid_data in the IDL PSM), this operation returns null.
The existing design is appropriate. The alternativereturning a non-null data object, and then making people check a flag that tells them not to use that objectwould be extremely error-prone.
Disposition: Closed, no change -
Updated: Fri, 6 Mar 2015 20:58 GMT
DDSJAVA — The Sample class should provide a method to check wether the data is valid
- Key: DDSJAVA-36
- OMG Task Force: Java 5 Language PSM for DDS 1.0 FTF