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

for* code completion has gotten dumber

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.0, 10.0, 11.0, 11.1
    • Fix Version/s: 11.1
    • Component/s: java - Editor
    • Environment:

      Description

      I've noticed that the usual code completion for "for* cycles" has gotten way dumber than the oracle powered version 8.2.

       

      In 8.2 if you had code like this:

       

        public static void main(String[] args)
        {
          String[] strings = {"1","2","3"};
          
      {{  }}}

       

      and you wrote "fore" then invoked code completion via shortcut it would generate the following block:

      }}{{    for (String string : strings)
          {
            
      {{    }}}

       

      now in 11.1 but I've also tried with 9.0 and it's the same it generates:

      }}{{    for (Object object : col)
          {
            
      {{    }}}

       

      not really that bad but definitely annoying compared to the previous version.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Irian Luca Mambretti
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 40m
                  40m