Yes, Stephen is correct. This is true. And as Robert Scholte of Maven pointed out, he still needs to support JRE 6 as the minimum. Lots of OSS projects still target 6. I think we should give them a little help in this area.
Cheers, Paul On Thu, Mar 10, 2016 at 2:27 AM, Stephen Colebourne <scolebou...@joda.org> wrote: > On 10 March 2016 at 07:58, Alan Bateman <alan.bate...@oracle.com> wrote: > > Keep in mind that a compiled module-info can be added to a JAR file where > > the code is otherwise compiled for an older release. If you are willing > to > > tolerate a newer JDK in your build environment then you can compile that > > code with `javac -release N`(see JEP 247 [1]). This means one JDK in your > > build environment with the build creating a JAR file that you can deploy > on > > the class path with JDK N or newer, or as an explicit module with JDK 9 > or > > newer. It is of course a more complicated build but something that a > > "forward looking" developer could do. > > Joda-Time compiles for JDK 1.5, other Joda projects for 1..6. Last > time I looked, the tool didn't go back far enough to be useful. > > Stephen >