You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Jean-Marc Borer <jm...@gmail.com> on 2020/01/09 09:05:40 UTC
NB Platform modules and JDK 11+ modules
Hi guys,
I just had a discussion with colleagues about NB module system. We were
wondering how this system is cohabitating with "new" Java module system.
Any idea or documentation/article/thread/information?
Cheers,
JMB
Re: Re: NB Platform modules and JDK 11+ modules
Posted by Jan Lahoda <la...@gmail.com>.
On Sat, Jan 11, 2020 at 8:07 PM Eric Bresie <eb...@gmail.com> wrote:
> I would think they might be value from the platform perspective to allow
> modules to interfaced with a little external from the platform as well as
> bringing in modules external to NB platform.
>
FWIW, there is this oldish prototype:
https://github.com/apache/netbeans/pull/291
Where the intent was to allow NetBeans modules depend on JDK modules
(although not on JPMS/"Jigsaw" modules in general).
> Not to mention if it migrated towards a standard module mechanism it
> avoids YAMS (yet another module system)...although I acknowledge the NB
> historical module aspects (documentation, books, plugins, etc.) may still
> have value as well.
>
One of many things to note here is that the JPMS does not allow so called
"split packages". I.e. having two modules having package with the same name
(the precise definition is a bit more complex, but this simple one should
be more than enough in this case). And in NetBeans platforms, the two
lowest-level modules are openide.util.lookup and openide.util. And both
these have the org.openide.util package. So any attempt to convert NetBeans
modules to JPMS modules will necessarily need to solve this problem. (There
are some other cases like this, but these two modules are so basic, and yet
so difficult to change, that I've never really thought about any other
case.)
Jan
>
> I guess this begs the question what is the means by which new JDK features
> get brought in to NB IDE and Platform?
>
> Assume some new feature is introduced (i.e. nio, lambda, modules, etc.) in
> JDK, which gets added to some existing code, requiring the dependency JDK
> be added to the Netbeans build (and/or run time) infrastructure, module /
> plugin dependency recompilation, repositories etc. and eventually if
> functionality was deprecated (i.e. Corba, Applets, etc) then that code
> would need migrated out (to plugin) or replaced with more applicable new
> technologies.
>
> I seem to recall there being tips to identify possible JDK improvements
> (like lambdas) which could be run across code bases...maybe doing so on the
> NB platform and IDE would be a worth wild activity.
>
> I’d hate for NB to get stagnant with old (potentially depreciated)
> functionality or get left behind
>
> Eric Bresie
> Ebresie@gmail.com
> > On January 9, 2020 at 8:11:09 AM CST, Neil C Smith <
> neilcsmith@apache.org> wrote:
> > On Thu, 9 Jan 2020 at 13:53, László Kishalmi <la...@gmail.com>
> wrote:
> > > Where there are similarities, NB modules are dynamic, Java modules are
> > > static, at least as far as I know.
> >
> > There are some interesting OSGi / JPMS projects around, such as
> > https://github.com/tjwatson/atomos - although only glanced at it. Not
> > sure if it can be made to work in any useful way with NetBeans' OSGi
> > integration. Interoperation would be really useful - at some point in
> > the near future I'd at least like to find a way to add in libraries on
> > the module path to an RCP application.
> >
> > Best wishes,
> >
> > Neil
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: dev-help@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
>
Re: Re: NB Platform modules and JDK 11+ modules
Posted by Eric Bresie <eb...@gmail.com>.
I would think they might be value from the platform perspective to allow modules to interfaced with a little external from the platform as well as bringing in modules external to NB platform.
Not to mention if it migrated towards a standard module mechanism it avoids YAMS (yet another module system)...although I acknowledge the NB historical module aspects (documentation, books, plugins, etc.) may still have value as well.
I guess this begs the question what is the means by which new JDK features get brought in to NB IDE and Platform?
Assume some new feature is introduced (i.e. nio, lambda, modules, etc.) in JDK, which gets added to some existing code, requiring the dependency JDK be added to the Netbeans build (and/or run time) infrastructure, module / plugin dependency recompilation, repositories etc. and eventually if functionality was deprecated (i.e. Corba, Applets, etc) then that code would need migrated out (to plugin) or replaced with more applicable new technologies.
I seem to recall there being tips to identify possible JDK improvements (like lambdas) which could be run across code bases...maybe doing so on the NB platform and IDE would be a worth wild activity.
I’d hate for NB to get stagnant with old (potentially depreciated) functionality or get left behind
Eric Bresie
Ebresie@gmail.com
> On January 9, 2020 at 8:11:09 AM CST, Neil C Smith <ne...@apache.org> wrote:
> On Thu, 9 Jan 2020 at 13:53, László Kishalmi <la...@gmail.com> wrote:
> > Where there are similarities, NB modules are dynamic, Java modules are
> > static, at least as far as I know.
>
> There are some interesting OSGi / JPMS projects around, such as
> https://github.com/tjwatson/atomos - although only glanced at it. Not
> sure if it can be made to work in any useful way with NetBeans' OSGi
> integration. Interoperation would be really useful - at some point in
> the near future I'd at least like to find a way to add in libraries on
> the module path to an RCP application.
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
Re: NB Platform modules and JDK 11+ modules
Posted by Neil C Smith <ne...@apache.org>.
On Thu, 9 Jan 2020 at 13:53, László Kishalmi <la...@gmail.com> wrote:
> Where there are similarities, NB modules are dynamic, Java modules are
> static, at least as far as I know.
There are some interesting OSGi / JPMS projects around, such as
https://github.com/tjwatson/atomos - although only glanced at it. Not
sure if it can be made to work in any useful way with NetBeans' OSGi
integration. Interoperation would be really useful - at some point in
the near future I'd at least like to find a way to add in libraries on
the module path to an RCP application.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: NB Platform modules and JDK 11+ modules
Posted by László Kishalmi <la...@gmail.com>.
Where there are similarities, NB modules are dynamic, Java modules are
static, at least as far as I know.
On Thu, Jan 9, 2020, 02:09 Geertjan Wielenga <ge...@apache.org> wrote:
> It is not. Does it need to?
>
> Gj
>
> On Thu, 9 Jan 2020 at 10:06, Jean-Marc Borer <jm...@gmail.com> wrote:
>
> > Hi guys,
> >
> > I just had a discussion with colleagues about NB module system. We were
> > wondering how this system is cohabitating with "new" Java module system.
> >
> > Any idea or documentation/article/thread/information?
> >
> > Cheers,
> >
> > JMB
> >
>
Re: NB Platform modules and JDK 11+ modules
Posted by Jean-Marc Borer <jm...@gmail.com>.
No. Just wondering.
On Thu, Jan 9, 2020 at 10:09 AM Geertjan Wielenga <ge...@apache.org>
wrote:
> It is not. Does it need to?
>
> Gj
>
> On Thu, 9 Jan 2020 at 10:06, Jean-Marc Borer <jm...@gmail.com> wrote:
>
> > Hi guys,
> >
> > I just had a discussion with colleagues about NB module system. We were
> > wondering how this system is cohabitating with "new" Java module system.
> >
> > Any idea or documentation/article/thread/information?
> >
> > Cheers,
> >
> > JMB
> >
>
Re: NB Platform modules and JDK 11+ modules
Posted by Geertjan Wielenga <ge...@apache.org>.
It is not. Does it need to?
Gj
On Thu, 9 Jan 2020 at 10:06, Jean-Marc Borer <jm...@gmail.com> wrote:
> Hi guys,
>
> I just had a discussion with colleagues about NB module system. We were
> wondering how this system is cohabitating with "new" Java module system.
>
> Any idea or documentation/article/thread/information?
>
> Cheers,
>
> JMB
>