This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Many idioms in lambda (Collectors, for instance) and java.time (Adjusters) are based on statically imported methods. People will have a hard time compiling them if the IDE doesn't support static imports out of the box. Not only the current Add static import hint must be supported, but there must be a way to add these static imports as part of Fix imports as well. Product Version = NetBeans IDE Dev (Build jdk8lambda-1641-on-20130208) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.8.0-ea Runtime = OpenJDK 64-Bit Server VM 25.0-b15
Both Fix all imports and the Add import fix should not be able to handle static imports: http://hg.netbeans.org/jet-main/rev/fc33fbc0b0dc Passing to Dusan to see if the code completion should do similar lookup into the index.
Code completion should be able to add static imports: http://hg.netbeans.org/jet-main/rev/4e17ffd5eff0
Integrated into 'main-golden', will be available in build *201304131047* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/ User: Log:
Code completion for static members enhanced with ability to prefer enclosing class imports over static imports. http://hg.netbeans.org/jet-main/rev/4c5cad8279f0
Integrated into 'main-golden', will be available in build *201304202301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4c5cad8279f0 User: Dusan Balek <dbalek@netbeans.org> Log: #226064: Code completion for static members enhancement.