Message8336

Author zyasoft
Recipients zyasoft
Date 2014-05-04.21:23:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399238622.04.0.776917495358.issue2135@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2014-05-04 21:23:42zyasoftsetrecipients: + zyasoft
2014-05-04 21:23:42zyasoftsetmessageid: <1399238622.04.0.776917495358.issue2135@psf.upfronthosting.co.za>
2014-05-04 21:23:42zyasoftlinkissue2135 messages
2014-05-04 21:23:41zyasoftcreate