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.
I find the following code template extremely useful, and always set it up. Any reason not to add it to the default set? ${clazz}[] ${var} = (${clazz}[]) ${coll instanceof="java.util.Collection"}.toArray (new ${clazz}[${coll}.size()]) I usually bind it to "2arr" It would be a little nicer if "clazz" could automatically pick up the generic type, if any, from the collection, but it looks like the template syntax doesn't support that yet.
Any chance of this for 7.0?
Fixed as part of fix for bug 116449 Fixed in main/ 4beffcfd4006
Integrated into 'main-golden', will be available in build *201001240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4beffcfd4006 User: Tim Boudreau <tboudreau@netbeans.org> Log: #116449, #167824, #108167, #173652, #173851, #101131, #173655 - additional Java editor hints, enhancements to existing ones, addition of module development-specific hints in apisupport.project