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 132011 - Generic anonymous classes
Summary: Generic anonymous classes
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-04 08:51 UTC by Tim Lebedkov
Modified: 2008-04-04 09:17 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2008-04-04 08:51:53 UTC
NB does a great job of automatically creating an anonymouse class once somebody write something like "new Comparator"
and presses Ctrl+Space. But is does not support generics. 
In the following case:

List<Map.Entry<FileObject, Double>> list = 
   new ArrayList<Map.Entry<FileObject, Double>>();

Collections.sort(list, new Comparator<-------------Ctrl+Space here

it generates a Comparator for Objects instead of a Comparator for Map.Entry<FileObject, Double>'s
It would be nice if it would support this too.