Issue 18424: Inconsistency in close() operations wrt. "throw java.io.IOException" declaration (dds-psm-java-rtf) Source: ADLINK Technology Ltd (Mr. Julien Enoch, julien.enoch(at)adlinktech.com) Nature: Revision Severity: Significant Summary: The Entity interface inherits from java.io.Closeable and overrides the close() operation to NOT throw java.io.IOException. But some inherited entities such as DataReader and DataWriter might have to throw IOException on closure as their implementation might use sockets. On the other hand the Sample.Iterator interface also inherits from java.io.Closeable but its close() operation declare to throw IOException. There should not be any IOException in this case since the Samples are already received by the DaraReader Resolution: Revised Text: Actions taken: February 6, 2013: received issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 06 Feb 2013 09:32:24 -0500 To: Subject: Issue/Bug Report ******************************************************************************* Name: Julien Enoch Employer: PrismTech mailFrom: julien.enoch@prismtech.com Terms_Agreement: I agree Specification: Java 5 DDS PSM Section: N/A FormalNumber: ptc/12-12-04 Version: 1.0 Doc_Year: Year Doc_Month: Month Doc_Day: Day Page: 0 Title: Inconsistency in close() operations wrt. "throw java.io.IOException" declaration Nature: Revision Severity: Significant CODE: 3TMw8 B1: Report Issue Description: The Entity interface inherits from java.io.Closeable and overrides the close() operation to NOT throw java.io.IOException. But some inherited entities such as DataReader and DataWriter might have to throw IOException on closure as their implementation might use sockets. On the other hand the Sample.Iterator interface also inherits from java.io.Closeable but its close() operation declare to throw IOException. There should not be any IOException in this case since the Samples are already received by the DaraReader.