why not drop Java 6 support for new released bundles at all? +1 for using Java 7 as default and minimum Java version.
stefan >-----Original Message----- >From: Robert Munteanu [mailto:romb...@apache.org] >Sent: Thursday, May 28, 2015 11:58 AM >To: dev@sling.apache.org >Subject: Moving to Java 7 ( was: Make ResourceResolver implement Closeable) > >This might've been buried under the 'Closeable' thread so resending so >that it does not suprise anyone. > >Currently our projects can use either Java 5 or 6, with 5 being the >default. This is very much out of date and we're missing out on >language improvements. I would suggest changing the supported Java >versions from > >- 5 (default), 6 >- 6, 7 (default) > >I would have preferred > >- 6, 7 (default), 8 > >But Java 8 support is blocked due to SLING-4702 [1]. > >Thoughts on the proposed change for the supported Java versions? > >Cheers, > >Robert > >[1]: https://issues.apache.org/jira/browse/SLING-4702 > >On Tue, 2015-05-26 at 16:38 +0200, Carsten Ziegeler wrote: >> Am 26.05.15 um 16:14 schrieb Robert Munteanu: >> > Hi Roy, >> > >> > On Tue, 2015-05-26 at 15:51 +0200, Roy Teeuwen wrote: >> > > Hello, >> > > >> > > As of Java 7, it is possible by implementing the Closeable or >> > > AutoCloseable to use the try-with-resources statement. This makes >> > > the >> > > notation a lot shorter than the try-finally block. Is there a >> > > reason >> > > that the ResourceResolver does not implement the Closeable >> > > interface, >> > > and would it be possible to let it implement it? >> > >> > We should "just" move to Java 7 by default. >> > >> +1 >> >> Carsten >> >>