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 180170

Summary: Generated parameter names for generic types should use actual type names
Product: java Reporter: _ tboudreau <tboudreau>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ tboudreau 2010-02-02 13:55:17 UTC
Say I have an interface:

public interface Transaction<ArgType, ResultType> {
  public Future<ResultType> run (ArgType argument);
}

and I implement or override methods using hints, on a concrete type, I get the generic names as my parameters - i.e. 
public class X implements Transaction<Properties, File> {
  public Future<File> run (Properties argument) { ... }
}

I will either get "argument" or "argtype" as the variable name on the implementation of run().  It probably should be "properties" - at any rate, "argtype" will always not desirable.