GitHub user neilcsmith-net added a comment to the discussion: No constructors 
warning for HQL using DTO class constructor

> If that is the case, then why not just compile stable NetBeans with a stable 
> JDK? Most libraries still work with JDK 17 LTS. Does NetBeans really need to 
> be so close to the bleeding edge in terms of the compiler?

Yes, unless you don't think people using NetBeans should be able to edit any 
code above JDK 17!  The IDE uses a backported version of the latest compiler to 
parse source code.

Lombok is a horrible hack that messes around with the internals of the Java 
compiler, which is why it continually breaks as NetBeans updates its parsing 
support for the latest JDKs.  It is almost always optional (eg. in Spring 
Boot), and rapidly becoming unnecessary and part of Java's past.  The small 
volunteer team here is going to keep concentrating our limited time on making 
NetBeans work well with the latest tools and JDKs.

> And also Lombok does already work with JDK 26 and yet NetBeans fails to 
> detect the Lombok constructor.

Sure, but also not the actual issue!  It's likely either a configuration 
problem with the project or something wrong in Lombok.  It's possibly caused by 
an underlying issue with expectations inside the IDE.  If the latter, and you 
find the underlying problem, then please open a report or PR for that.

EDIT : possibly make sure you check that `proc:full` is set in the project.  It 
might be that annotation processing is not being triggered at all in the IDE?

GitHub link: 
https://github.com/apache/netbeans/discussions/9552#discussioncomment-17966424

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[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