David Green created NETBEANS-2187: ------------------------------------- Summary: Command completion on assignment Key: NETBEANS-2187 URL: https://issues.apache.org/jira/browse/NETBEANS-2187 Project: NetBeans Issue Type: Bug Affects Versions: 10.0, 11.0 Reporter: David Green Attachments: Screen Shot 2019-02-28 at 8.13.18 PM.png
h3. Steps # Open class {{completion.SmartAssign }}from sample project # Type {{List l = }}at the end of test method and call smart CC # Replace last entered line with {{List<String> l = }}and call smart CC # Replace last entered line with {{List<String> l = new }}and call smart CC # open class {{completion.SmartReturn }}from sample project # Replace last line of method {{getName }}with {{return }}and call smart CC # Replace last line of method {{getName }}with {{return "". }}and call smart CC # Replace last line of method {{getName }}with {{return new }}and call smart CC h3. Expected result: In step 2 all elements of type (or returning type) String are listed together with all static methods from class java.lang.String returning String In step 3 all methods of java.lang.String returning String are listed In step 4 identifier String is inserted, since it was the only possible completion in this situation (String cannot have subclasses it's final) Actual - many more things are returned. See attached graphic. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- 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