Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
12.5
Description
Records are pretty cool, but NetBeans pushes the keyword a little bit too hard.
Take a look at this code:
public class NewClass2 { public static void main(String[] args) { foo| } }
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
Attachments
Issue Links
- links to