Also, the question is what it means to build NetBeans on JDK 9, i.e.,
here's some thoughts from an e-mail from Jan Lahoda:
I guess there's a big range of variants of "building NetBeans on Java 9",
> e.g.:
> 1. just allowing build pass on 9, using -source 8/-target 8 as before (but
> the result may be unable to reliably run on 8)
> 2. building with --release 8 (i.e. building on JDK 9, but producing output
> runnable on 8), and having JDK 9 as the minimal requirement for building.
> (Which is something the community needs to decide.)
> 3. as 2, but supporting build on both JDK 9 and JDK 8. (I suspect this may
> be pretty hard.)
> 4. allowing modules to actually use -source >= 9 (first for platform
> users, and then, when JDK 8 support is dropped, for core modules as well)
> For 1., the first compilation error is:
> [repeat]
> /usr/local/home/lahvac/src/nb/apache-netbeans/o.n.bootstrap/src/org/netbeans/NbInstrumentation.java:43:
> error: NbInstrumentation is not abstract and does not override abstract
> method isModifiableModule(Module) in Instrumentation
> [repeat] final class NbInstrumentation implements Instrumentation {
> [repeat] ^
> Not unsolvable, of course, but hard to say how many more issues like this
> can be expected. (And this variant does not make too much sense anyway - as
> long as JDK 8 is supported at runtime, we should at least aim for building
> with --release 8.)
Thanks,
Gj
On Sat, Feb 17, 2018 at 11:31 PM, Geertjan Wielenga <
[email protected]> wrote:
> No, nobody needs to switch between JDKs when contributing, as far as I
> know.
>
> Jan Lahoda and others can provide details on what needs to be done to
> build NetBeans on JDK 9, though I wonder whether that is a priority.
> So long as NetBeans can run on JDK 9 (which it can), it doesn't really
> matter as far as I can see that it needs JDK 8 for building it.
>
> From those who've been contributing code so far, I don't see that this
> is a blocker.
>
> Gj
>
> On Sat, Feb 17, 2018 at 2:28 PM, Martin Dindoffer <[email protected]>
> wrote:
> > Hi NB dev team,
> >
> > As we all know, NB cannot be built using Java 9. With 9 way past its
> GA, it
> > seems to pose a roadblock
> > for new contributors, as they need to switch between 9 and 8 environments
> > for contributing.
> > I was wondering, what exactly blocks the j9 builds? As far as I can
> > remember, the ant script tries to download
> > the javac, self-compile it and then build an ant bootstrap with it, which
> > fails.
> >
> > Can someone more knowledgeable in this area of Netbeans/ant shed more
> light
> > on the issue? Why exactly do
> > we need the special ant bootstrap and why do we have to redownload and
> > self-compile the javac?
> >
> > There may be some people out there who would volunteer to work on this.
> > Myself included, but I cannot make any promises right now.
> >
> > Thanks,
> > Martin
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
>