ChristianPervoelz opened a new issue #3803:
URL: https://github.com/apache/netbeans/issues/3803


   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   It was tried to write a simple loop using iterators on a collection.
   Typing _forc_ followed by the tab key should expand to 
   ```
   for (Iterator<E> iterator = c.iterator(); iterator.hasNext();) {
     E next = iterator.next();
        
   }
   ```
   but actually let NetBeans hang up.
   Even several minutes of waiting does not clean up the situation.
   
   ### How to reproduce
   
   1. Create a class with a single method like this: (the type of modifiers do 
not matter)
   ```
   public class MyClass<E> {
   
     public boolean aMethod(Collection<? extends E> c) {
        
     }
   }
   ```
   
   2. Type `forc` into the method block and press the tab key.
   
   NetBeans will hang now.
   
   **Note**
   This happens only if `? extends E` is used.
   The same method, but using `Collection<E>` as parameter only will cause no 
problems.
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 12.4
   
   ### Operating System
   
   Windows 11
   
   ### JDK
   
   OpenJDK 16
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   Issues is reproducible constantly.
   
   I don't know for sure in which version this problem occurred first or in 
which version it worked last, but I'm pretty sure it has been working properly 
in 12.4 at least.
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### 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

Reply via email to