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

   ### Apache NetBeans version
   
   Apache NetBeans 28
   
   ### What happened
   
   The hint to add an import for a static method is not offered inside record 
classes.
   
   ### Language / Project Type / NetBeans Component
   
   Java, Hints
   
   ### How to reproduce
   
   Example:
   ```java
   record Example()
   {
       Example { System.currentTimeMillis(); }
       void f() { System.currentTimeMillis(); }
   }
   ```
   => No static-import hint is offered for currentTimeMillis().
   
   Compare to the case of a regular class:
   ```java
   class Example
   {
       Example() { System.currentTimeMillis(); }
       void f() { System.currentTimeMillis(); }
   }
   ```
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows
   
   ### JDK
   
   JDK 21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### 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