Message8336
Java objects that implement both AutoCloseable and Closeable should automatically be closed by the with statement.
Per the docs of AutoCloseable, "implementers of this interface are strongly encouraged to make their close methods idempotent". However this can be guaranteed by also testing for implementing Closeable, given that idempotence is in fact guaranteed: "If the stream is already closed then invoking this method has no effect." (ttp://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html#close() |
|
Date |
User |
Action |
Args |
2014-05-04 21:23:42 | zyasoft | set | recipients:
+ zyasoft |
2014-05-04 21:23:42 | zyasoft | set | messageid: <1399238622.04.0.776917495358.issue2135@psf.upfronthosting.co.za> |
2014-05-04 21:23:42 | zyasoft | link | issue2135 messages |
2014-05-04 21:23:41 | zyasoft | create | |
|