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 have: return new TreeMap<SomeEnum, X>(); for a method that returns SortedMap<SomeEnum,X>. The hint isn't applicable to this context. 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
*** Bug 222044 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201306181109* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/69ebbcdb8dc7 User: Jan Lahoda <jlahoda@netbeans.org> Log: #218550: prevent the "use EnumMap" hint if EnumMap is not assignable to the target type.
Fixed by the above changeset.