On Sat, 29 Oct 2022 at 00:28, Ernie Rael <err...@raelity.com> wrote:
> On 22/10/28 3:52 PM, Michael Bien wrote:
> > it was projects linking against the wrong JDK, e.g by not using
> > the -release flag. I explained that in the other mail how the release
> > flag works.
>
> I left a comment in the code where I ran into the problem; it references
>
>     https://github.com/apache/felix/pull/114
>
> which led me to believe it was a JDK incompatibility; could just be that
> issue's author's point of view. I vaguely remember reading other stuff
> about it but it's not important now.

That's not a bug in the JDK!

And because NetBeans has a few modules that cannot be compiled with
the --release option it had to be worked around in the same way as
that Felix issue mentions, and in the same way that you're going to
have to to use SpecificationVersion - rewrite the code to force
linking to the older method.

https://github.com/apache/netbeans/pull/3418
https://github.com/apache/netbeans/pull/3418/files#diff-ae54621e96abcfef845cb4515104dfbe12475df886225a772e53455b32d1f8f0R517

> sigtest failed, and it was fixed by modifying sigtest.

Depends why sigtest fails.  In this case, because it doesn't list
bridge methods.

Imagine the new method had been added explicitly with the old one.
Sigtest would be fine.  Your code linked against it would still have
the same issues on older versions of NetBeans.


> > if you want to support a feature which is only available in a newer NB
> > version while also be able to run on older NB versions, you could put
> > that into a separate module and treat it as a service - it may or may
> > not be available.
>
> Wasn't using nb-javac to compile NetBeans supposed to make it easier to
> put that kind of thing together?

I can't see any way that makes the situation any different.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to