Re: [Geotools-devel] FeatureIterator closable

2012-07-03 Thread Jody Garnett
> > This would finally let us recover for the darn for-each loop. FeatureReader > > and FeatureWriter should also implement closable. > > > > Java 6: close() would throw IOException > > Looks good to me. As said in the past, imho it has been a mistake not to > throw IOException from > the oth

Re: [Geotools-devel] FeatureIterator closable

2012-07-03 Thread Andrea Aime
On Mon, Jul 2, 2012 at 4:23 AM, Jody Garnett wrote: > I mentioned this a couple weeks ago; but after reading into the Java 7 > pipeline and Juno support for try-with-resource I am even more convinced > that this is a necissary change for GeoTools 9.x. > > Reading: > - > http://docs.oracle.com/ja

[Geotools-devel] FeatureIterator closable

2012-07-01 Thread Jody Garnett
I mentioned this a couple weeks ago; but after reading into the Java 7 pipeline and Juno support for try-with-resource I am even more convinced that this is a necissary change for GeoTools 9.x. Reading: - http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html - http: