anthonyvdotbe opened a new issue, #5130:
URL: https://github.com/apache/netbeans/issues/5130
### Apache NetBeans version
Apache NetBeans 16
### What happened
Consider the following code:
```java
class Bar {
static void bar() {
class Foo { static void foo() {} }
// cursor here
}
}
```
Now type `Foo`. At this point NetBeans provides suggestions:

Then type a dot. Now NetBeans autocompletes `Foo.` to `ForLoopTree.` and
gives suggestions for it.
What I expected to happen, is for NetBeans to just add the dot, and give
suggestions for the class `Foo` defined in the line above:

In other words: when what's before the dot is valid in the current context,
typing a dot should never (unless there's sensible exceptions I'm missing)
autocomplete. When I want to autocomplete to a type, I can easily press Tab or
Enter to autocomplete first, and then type the dot.
### How to reproduce
As described in `What happened`.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 11
### JDK
openjdk full version "20-ea+22-1594"
### Apache NetBeans packaging
Apache VSNetBeans for VSCode
### Anything else
_No response_
### Are you willing to submit a pull request?
Yes
### Code of Conduct
Yes
--
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