[javaee-spec users] [jsr342-experts] Re: Fwd: [Bug 4518] Both ItemReader and ItemWriter should extend AutoCloseable

From: Linda DeMichiel <>
Date: Tue, 22 Jan 2013 13:50:27 -0800


On 1/20/2013 9:00 AM, Werner Keil wrote:
> Linda/all,
> I wanted to run this by you, as Linda's "fear" she expressed last week at the JCP EC Meeting that Spec Lead or EG
> Members of Java Batch (JSR 352) argue, they wish to keep redundancies to Java 7 (AutoCloseable) for the sake of
> backward-compatibility with some old JVMs, and EE Containers and a JDK, which is scheduled for Sun-down this February.
> What is your oppinion on that? I was under the impression, the idea of "Simplification" and "Harmonization" for EE 7
> wants to address exactly cases like that, or would you prefer it to duplicate things that the Platform (SE7/EE7) already
> defined elsewhere?
> I remember, other EC Members, Oracle and Red Hat primarily expressed discomfort with some aspects of JSR 352 being
> incompatible with Java EE 7. That is clearly another one, regardless if those members spotted it earlier or not.

Well, to be fair, this is somewhat of a gray area, as it involves the non-use of a newer API
rather than an API incompatibility in the direct sense.

In any case, we are in contact with the specification lead, who is evaluating the issue.



> Thanks and Regards,
> --
> Werner Keil | JCP Executive Committee Member | Eclipse UOMo Lead, Babel Language Champion| Java Godfather
> Twitter @wernerkeil | #Java_Social | #EclipseUOMo | #OpenDDR
> Skype werner.keil | Google+ <>
> * Social Media Week: February 18 2013, Hamburg, Germany. Werner Keil, JCP Executive Committee Member, Agorava
> Co-Founder will present "Enterprise Social using Open Source Frameworks like Agorava"
> ---------- Forwarded message ----------
> From: ** < <>>
> Date: Sun, Jan 20, 2013 at 5:40 AM
> Subject: [Bug 4518] Both ItemReader and ItemWriter should extend AutoCloseable
> To: <>
> --- Comment #8 from <> 2013-01-20 04:40:41 UTC ---
> I would argue that, as Chris brought up in his original response to this issue,
> the AutoClosable interface would be of limited (at best) usefulness for an
> ItemReader or ItemWriter. As he points out, the open and close methods are not
> called as part of the public API, and even if it was, there isn't a concrete
> association with an ItemReader/ItemWriter with a resource. It could be
> accessing a file, a database, a method on an object, a web service, etc. The
> coupling of this to a resource like this doesn't make sense to me.
> However, the cost of adding it and changing the required JDK version to 1.7 is
> huge IMHO. I'd vote for not implementing this interface and keeping the JDK
> requirement at 1.6.
> --
> Configure bugmail:
> ------- You are receiving this mail because: -------
> You reported the bug.