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.
Given aMethod returns List<Integer>, this: List<String> ret = aMethod(); will cause the following hint to be displayed: Change type of ret to List<String> while the following will cause no hint to be shown: for (String s : aMethod()) { // ... } Product Version = NetBeans IDE Dev (Build 20121220-4f53a116c76b) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_07 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.3-b01
Integrated into 'main-golden', will be available in build *201301010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2aaac3cd1678 User: Jan Lahoda <jlahoda@netbeans.org> Log: #224232: change type fix should work also inside for-each for more general cases.
Fixed by the above changeset. Thanks for the report.
*** Bug 218457 has been marked as a duplicate of this bug. ***