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.

Bug 224232 - [73cat] Change type of var to Type not shown for for-each
Summary: [73cat] Change type of var to Type not shown for for-each
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 218457 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-26 13:10 UTC by misterm
Modified: 2013-01-10 12:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2012-12-26 13:10:40 UTC
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
Comment 1 Quality Engineering 2013-01-01 02:44:34 UTC
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.
Comment 2 Jan Lahoda 2013-01-01 19:24:00 UTC
Fixed by the above changeset. Thanks for the report.
Comment 3 Jan Lahoda 2013-01-10 12:02:09 UTC
*** Bug 218457 has been marked as a duplicate of this bug. ***