FabriSr opened a new issue, #5845:
URL: https://github.com/apache/netbeans/issues/5845

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   Methods annotated with CDI @PostConstruct and @PreDestroy are reported as 
unused methods by the IDE Hints. Methods annotated with @PostConstruct and 
@PreDestroy are intended to be invoked by the CDI Framework implementation, not 
by the programmer. This error does not occur in 12.6 version.
   
   
   
   ### How to reproduce
   
   1. Create a new Jakarta 10 Web Profile maven project;
   2. Define a new CDI Managed Bean and add a private void method annotated 
with @PostConstruct and add a private void method annotaded with @PreDestroy;
   3. The IDE wil hint these methods as "unused methods";
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 12.6 or earlier
   
   ### Operating System
   
   Oracle Linux 9.1 x64
   
   ### JDK
   
   OpenJDK 11
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


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