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 174375 - Add Refactoring Support for Generics.
Summary: Add Refactoring Support for Generics.
Status: CLOSED DUPLICATE of bug 56726
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-12 16:57 UTC by gliesian
Modified: 2011-11-04 17:51 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 gliesian 2009-10-12 16:57:12 UTC
Eclipse has refactoring support for generics (i.e. refactoring raw types to parameterized types and all 
dependencies)... this is taken from their help:

=== BEGIN ECLIPSE HELP ===
Infer Generic Type Arguments

Replaces raw type occurrences of generic types by parameterized types after identifying all places where this 
replacement is possible. 
Available: Projects, packages, and types 
Options: 'Assume clone() returns an instance of the receiver type'. Well-behaved classes generally respect this rule, 
but if you know that your code violates it, uncheck the box. 

'Leave unconstrained type arguments raw (rather than inferring <?>)'. If there are no constraints on the elements of 
e.g. ArrayList a, uncheck this box will cause Eclipse to still provide a wildcard parameter, replacing the reference 
with ArrayList<?>. 

=== END ECLIPSE HELP ===

Generic refactoring support would be a great feature for NetBeans.

-- Robert
Comment 1 gliesian 2009-10-12 17:26:12 UTC
IntelliJ IDEA has excellent Generic Refactoring support.

Consider reviewing their features as well.
Comment 2 Jan Pokorsky 2009-12-02 08:01:33 UTC

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