-
Key: DDSJAVAF2-6
-
Legacy Issue Number: 17415
-
Status: closed
-
Source: Real-Time Innovations ( Sumant Tambe)
-
Summary:
Java 7 has a try-with-resources construct that allows a close() method to be called automatically when a certain code block ends. Java PSM can support this construct with sample loans in a way that's backwards compatible with Java 5. All we have to do is to rename the Sample.Iterator.returnLoan() method to close() and make Sample.Iterator implement the interface java.io.Closeable. Note: java.lang.AutoCloseable is available only since 1.7
-
Reported: DDS-Java 1.0b2 — Fri, 8 Jun 2012 04:00 GMT
-
Disposition: Resolved — DDS-Java 1.0
-
Disposition Summary:
Proposed Resolution:
Inherit Sample.Iterator from Java.io.Closeable and rename the Sample.Iterator.returnLoan() method to close() -
Updated: Fri, 6 Mar 2015 20:58 GMT
DDSJAVAF2 — Implement java.io.Closeable in Sample.Iterator
- Key: DDSJAVAF2-6
- OMG Task Force: Java 5 Language PSM for DDS 1.0 (DDS-PSM-Java) FTF2