matthiasblaesing commented on issue #7365:
URL: https://github.com/apache/netbeans/issues/7365#issuecomment-2099180916

   > > > java.lang.IllegalArgumentException: Unsupported class file major 
version 61
   > > 
   > > 
   > > That is a class build for JDK 17. My gut feeling the asm Version that 
complains there is to old.
   > 
   > I'm not sure what you're saying. What is "That", the first word of the 
comment, referring to?
   
   That class that is being processed by asm according to the stack trace.
   
   But this:
   
   > java.lang.IllegalArgumentException: Unsupported class file major version 61
   >    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:196)
   >    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:177)
   >    at org.objectweb.asm.ClassReader.<init>(ClassReader.java:163)
   >    at 
org.gradle.tooling.internal.provider.serialization.ClasspathInferer.find(ClasspathInferer.java:105)
   >Caused: org.gradle.api.GradleException: Could not determine the class-path 
for class 
org.netbeans.modules.gradle.loaders.LegacyProjectLoader$NbProjectInfoAction.
   
   Makes no sense. NB bundles asm 9.7 and gradle 7.4 bundles asm 9.2. Both 
should support JDK 17 (9.2 is documented to support JDK 18 classes).
   
   My gut feeling: Someone decided it would be a good idea that the gradle 
tooling API passed java bytecode from the caller (NetBeans IDE) to the project 
being worked on. If that is the case, the asm version relevant here is the one 
in the gradle being targetted. If that asm version supported JDK 11, it would 
have worked because the bytecode level for the `gradle` project was bumped in 
this cycle to JDK 17.
   
   @lkishalmi  what do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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

Reply via email to