[ https://issues.apache.org/jira/browse/NETBEANS-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17121268#comment-17121268 ]
Eirik Bakke commented on NETBEANS-2494: --------------------------------------- Here's another test case that provokes this stack trace: {code:java} public final class AutoCompletionBugExhibit { public void someMethod() { Object foo1, foo2, foo3, foo4, foo5, foo6, foo7; /* BUG: Place the cursor before the semicolon, press control+space to open autocomplete, and press enter to fill in the constructor. An AssertionError in com.sun.tools.javac will result. */ String tableForPrimary = new ; } } {code} The problem seems to occur whenever a certain minimum number of variables are in scope to be considered as arguments to the constructor. > autocomplete deletes instead of completes > ----------------------------------------- > > Key: NETBEANS-2494 > URL: https://issues.apache.org/jira/browse/NETBEANS-2494 > Project: NetBeans > Issue Type: Bug > Components: java - Editor > Affects Versions: 11.0 > Environment: OS X 10.14.3 (18D109) > Java 1.8.0_181 > Product Version: Apache NetBeans IDE 11.0 (Build > incubator-netbeans-release-404-on-20190319) > Java: 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13 > Runtime: Java(TM) SE Runtime Environment 1.8.0_181-b13 > System: Mac OS X version 10.14.3 running on x86_64; UTF-8; en_US (nb) > User directory: ~/Library/Application Support/NetBeans/11.0 > Cache directory: ~/Library/Caches/NetBeans/11.0 > Reporter: Paul > Priority: Critical > Attachments: Test.java > > > easily reproducible (on Mac anyway). > In any java class, inside method body type this: > > OutputStream os = new ByteArra > then press Ctrl-Space, press down-cursor to go to > java.io.ByteArrayOutputStream constructor., press Enter. > Instead of completing as requestedor offering user input to choose what to > actually put there, NB11 deletes the new ByteArra. > The only way to get it to actually complete is mouse-click. > Super-long time NB user here - grew accustomed to a pleasurable dev > experience, and loss of this functionality is so taxing it's worth just using > Eclipse at this point. > > Looking forward to a fix > > Related: NETBEANS-2490 -- 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