On 3/22/25 17:24, Eirik Bakke wrote:
>> I suspect this is the ASM issue with the agent raised in the GitHub 
>> discussion thread.
> Which issue was that? (Looked around in the thread but had trouble finding 
> it...)

the ASM lib is known to be java bytecode version sensitive. v7.1 will work on 
JDK 24 but fail on EA JDK 25 for example, which makes it very annoying for 
projects which have to test on upstream JDKs early.

in general:

It is the number one reason why jdk upgrades are more difficult than they 
should be, since the first task is often having to find which of your 
dependencies uses ASM (which is sometimes shaded) and upgrade that first.

If you ever had to upgrade dusty java projects - ASM is the first thing which 
would typically fail, it is not uncommon that a single project has 5+ versions 
of that lib in it.

so what are the solutions?

- keep it always up to date (which can be "interesting" once a dependency 
shades the lib)

- use JDK's new Classfile API which went final in JDK 24, this should improve 
the situation over the long therm since less and less libs will use ASM (most 
don't really need such powerful lib anyway). If its in the JDK it fits to the 
bytecode version -> problem solved.


best regards,

michael


>
> -- Eirik
>
> From: Neil C Smith <neilcsm...@apache.org>
> Reply-To: "dev@netbeans.apache.org" <dev@netbeans.apache.org>
> Date: Saturday, March 22, 2025 at 12:18 PM
> To: dev <dev@netbeans.apache.org>
> Subject: Re: ΝΒ25 crashes with JDK24 on Windows
>
> On Sat, 22 Mar 2025, 15:41 Ioannis Torounoglou, 
> <john.torounog...@gmail.com<mailto:john.torounog...@gmail.com>>
> wrote:
>
>
> Without the agent is staring but Clipboard is not working...
>
> The good news is that with java_desktop_clipboard_patch_17plus.jar is
> starting and working fine...
>
> If you need any other testing, just ask...
>
>
> Good to know. Thanks.
>
> I suspect this is the ASM issue with the agent raised in the GitHub
> discussion thread.
>
> 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