nmatt opened a new issue, #9199:
URL: https://github.com/apache/netbeans/issues/9199
### Apache NetBeans version
Apache NetBeans 28
### What happened
For local classes, code completion for the class name works, but for
constructor invocations (`new` expressions) no code completion is offered.
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
Example:
```java
class Example
{
static class NonLocalClass { int a; int b; NonLocalClass(int a, int b) {
} }
record NonLocalRecord(int a, int b) { }
void method()
{
class LocalClass { int a; int b; LocalClass(int a, int b) { } }
record LocalRecord(int a, int b) { }
new LocalClass // <– code completion here
}
}
```
=> No argument-list code completion for the local classes is offered, in
contrast to constructor invocations of nonlocal classes.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows
### 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