nmatt opened a new issue, #9182:
URL: https://github.com/apache/netbeans/issues/9182
### Apache NetBeans version
Apache NetBeans 28
### What happened
Code completion for class names only works on the first component of a
record. On the second and subsequent components, only interface names are
completed, class names are not.
### Language / Project Type / NetBeans Component
Java, Editor
### How to reproduce
1. Invoke code completion in `public record Example(TU|)`, where the "|"
indicates the caret position where code completion is invoked.
=> The code completion popup shows the expected types:
<img width="470" height="123" alt="Image"
src="https://github.com/user-attachments/assets/9bc99207-9d56-46f3-b7dc-b29014d6fb8a"
/>
2. Invoke code completion in `public record Example(TimeUnit a, TU|)`, where
the "|" indicates the caret position where code completion is invoked.
=> The code completion popup only shows matching interface types (just one
in this example):
<img width="491" height="73" alt="Image"
src="https://github.com/user-attachments/assets/725f0647-5145-4720-bfee-fffcfba8e7d2"
/>
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows
### JDK
JDK 17
### 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