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

Summary: Add Refactoring Support for Generics.
Product: editor Reporter: gliesian <gliesian>
Component: RefactoringAssignee: issues@java <issues>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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 ***