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.
[ BUILD # : 201005050200 ] [ JDK VERSION : 1.6.* ] See attachment ... If I write in my code: ByteBuffer bb = ByteBuffer.allocate(cp); code correction should offer to add the package prefix to have: java.nio.ByteBuffer bb = java.nio.ByteBuffer.allocate(cp); Additionally the "Create class ByteBuffer in ..." is duplicated.
Created attachment 98652 [details] Screen shot
I have fixed the duplicated fix: http://hg.netbeans.org/jet-main/rev/d3039409a19b Proposing fix with FQN is an enhancement, IMO. Not that Fast Import (Alt-Shift-I) allows to quickly add a fqn.
Because using a full class name is a very basic Java syntax, much more reasonable/frequent, than "Create new class ...", I'm still the opinion, the missing in the "error fix" suggestions, is a defect.
Integrated into 'main-golden', will be available in build *201005112200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: