Naoki Kishida created NETBEANS-895: -------------------------------------- Summary: Code completion for field initializer does not add import without nbjavac Key: NETBEANS-895 URL: https://issues.apache.org/jira/browse/NETBEANS-895 Project: NetBeans Issue Type: Bug Components: java - Editor Environment: release-302-on-20180517 without nbjavac Reporter: Naoki Kishida
Code completion for a field initializer does not add import when nbjavac is not enabled. for a field type, there are `SecurityException` and `SecurityManager` but are not `Set` for candidates in the completion list. {code:java} class Foo { Se[ctrl]+[space] } {code} for a field initializer, choising `HashSet` does not add `import java.util.HashSet` {code:java} import java.util.Set; class Foo { Set s = new Hash[ctrl]+[space] } {code} for a field initializer, choising `HashSet` does not insert the `HashSet` {code:java} import java.util.Set; class Foo { static Set s = new Hash[ctrl]+[space] } {code} -- 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