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

From: Werner Keil <>
Date: Sun, 20 Jan 2013 18:00:15 +0100


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.

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
--- Comment #8 from 2013-01-20 04:40:41 UTC ---
I would argue that, as Chris brought up in his original response to this
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
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.
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
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.