Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6111

NetBeans autocompletion really likes to suggest "record"

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              Unassigned Unassigned
              mbien Michael Bien
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m