AutoCloseable XMLStreamReader and XMLStreamWriter?

huizhe wang huizhe.wang at oracle.com
Tue May 28 22:47:08 UTC 2013


The JSR 206 spec did not have such requirement, but the RIs of JSR 
206/173 still support JDK5.  We stopped supporting JDK 1.4 in 2009 in 
order to move up to features introduced in JDK5.  It may be time to 
consider again.  However, even if we do, I think we should move up to 
JDK6.  It may be too steep to move to JDK7.  The new features introduced 
in JEP-185 will not be backported into older JDKs, but it won't change 
the source level.

I saw your email now to users at sjsxp. It sill functions, but like you 
said, it's "almost" dead since no one is using it :-). Openjdk aliases 
are the right place for discussions concerning JAXP.

Thanks,
Joe

On 5/28/2013 12:44 PM, Philippe Marschall wrote:
>
>
> On 27.05.2013 10:40, Alan Bateman wrote:
>> On 26/05/2013 12:04, Philippe Marschall wrote:
>>> Hi
>>>
>>> It would be nice if javax.xml.stream.XMLStreamReader and
>>> javax.xml.stream.XMLStreamWriter could be made to extend
>>> java.lang.AutoCloseable so that they can be used in a
>>> try-with-resouces statement. The some does for XMLEventReader and
>>> XMLEventReader.
>> I don't recall if this one has come up before (there were lots of
>> candidates identified for retrofitting when AutoCloseable was added) but
>> the XML APIs have the complication that they are a "Standalone
>> Technology".
>
> Yes and JEP-185 doesn't make it less confusing.
>
>> I don't know how far back JSR-206/173 needs to be support
>> but if you retrofit these interfaces to extend AutoCloseable then it
>> would rule out usage with jdk6. Joe Wang might know about about this.
>
> Is he watching this list or should I contact him otherwise?
>
> Cheers
> Philippe




More information about the core-libs-dev mailing list