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.
The following class General { class Item { } static Item[] gen( Collection<? extends Item> col) { Item[] items = col.toArray(new Item[0]); //<<<<<< hint return items; } } gives the bogus hint. Applying the fix does *not* change the code.
Will be fixed in jet-main#4367b6a6edf1
Integrated into 'main-silver', will be available in build *201504230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4367b6a6edf1 User: Svata Dedic <sdedic@netbeans.org> Log: #250509: support for generified types