On Sat, Jul 14, 2018 at 12:22 PM, Sven Reimers <[email protected]>
wrote:

> Hi,
> I think Jan had an early prototype for using jigsaw modules as modules in
> NetNeans (similiar to the OSGI support) so we could skip creating wrapper
> modules...
>

Yes, here:
https://cwiki.apache.org/confluence/display/NETBEANS/JDK+Modules+Support+in+NetBeans+Module+System

And here:
https://github.com/apache/incubator-netbeans/pull/291

It allows to specify dependencies on system modules.

If we wanted support for Jigsaw modules running inside the NetBeans (module
system) container, that might be doable, but OSGi may be working on that as
well, and we are able to run OSGi modules. So we may be able to get that
feature through OSGi without too much work on our end.

I guess I wonder what people imagine/expect when we talk about "Jigsaw"
support:
-ability to develop Jigsaw applications in the IDE
-ability to depend on (system) Jigsaw modules from NetBeans modules
-ability to include and depend on Jigsaw modules inside the "container"
-having NetBeans modules be also Jigsaw modules (which is tricky, as NB
modules are using split packages, which are not supported by Jigsaw; this
is not a corner case, even openide.util.lookup and openide.util both export
APIs in the org.openide.util package)
-something else?

Jan


> I think this would be a good way forward.
>
> Maybe once NetBeans runs only on 9+ Java we can start about using Jigsaw
> infrastructure instead of home grown PrixyClassloader etc.
>
> Since Jigsaw modules do not declare lifecycle, versioning etc. they can
> never be and were never intended to be a replacement for OSGI, JBoss
> Modules  or NetBeans Modules.
>
> Just my 2€c
>
> -Sven
>
> Geertjan Wielenga <[email protected]> schrieb am
> Sa., 14. Juli 2018, 11:41:
>
> > Exactly. Jigsaw was never created for dynamic systems such as NetBeans.
> > Plus, changing to use Jigsaw just for the sake of it is questionable.
> >
> > Gj
> >
> >
> > On Saturday, July 14, 2018, Neil C Smith <[email protected]> wrote:
> >
> > > On Sat, 14 Jul 2018 at 08:48, Geertjan Wielenga
> > > <[email protected]> wrote:
> > > >
> > > > Then something has changed because I have heard Mark Reinhold say
> > > multiple
> > > > times that Jigsaw is not intended to be like OSGi etc because runtime
> > > > updates are not intended to be supported.
> > >
> > > That, and versioning, and split packages IIRC - real feeling of
> > > deja-vu with this topic - might be worth looking back through the dev@
> > > archives?
> > >
> > > Best wishes,
> > >
> > > Neil
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected].
> apache.org
> > >
> > > For further information about the NetBeans mailing lists, visit:
> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >
> > >
> > >
> > >
> >
>

Reply via email to