Michael Bien created NETBEANS-6111:
--------------------------------------

             Summary: NetBeans autocompletion really likes to suggest "record"
                 Key: NETBEANS-6111
                 URL: https://issues.apache.org/jira/browse/NETBEANS-6111
             Project: NetBeans
          Issue Type: Bug
          Components: java - Editor
    Affects Versions: 12.5
            Reporter: Michael Bien


Records are pretty cool, but NetBeans pushes the keyword a little bit too hard.
Take a look at this code:


{code:java}
public class NewClass2 {
 public static void main(String[] args) {
   foo|
 }
}{code}
put the cursor where the | is and press ctrl + space. You will see only the 
keyword "record" being suggested. Applying the suggestion would replace foo 
with "record" which does not make a lot of sense.
Tested on JDK 17 and 15, probably reproducible on others too - post record 
introduction.

issue was brought up on the #netbeans irc channel



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to