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 218457 - [73cat] Show change type hint when type is incompatible with Iterable / array return type
Summary: [73cat] Show change type hint when type is incompatible with Iterable / array...
Status: RESOLVED DUPLICATE of bug 224232
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2012-09-17 09:39 UTC by misterm
Modified: 2013-01-10 12:02 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2012-09-17 09:39:37 UTC
If a snippet like:

for (SomeEnum se : SomeEnum.values()) { ... }

is changed to

for (SomeEnum se : AnotherEnum.values()) { ... }

the IDE should suggest changing se type to AnotherEnum as it already does on incompatible assignments.

Product Version = NetBeans IDE Dev (Build 20120914-1d2f1a14b692)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_01
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.1-b02
Comment 1 Jan Lahoda 2013-01-10 12:02:09 UTC
Fixed as bug #224232.

*** This bug has been marked as a duplicate of bug 224232 ***