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 - Generated parameter names for generic types should use actual type names
Summary: Generated parameter names for generic types should use actual type names
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-02 13:55 UTC by _ tboudreau
Modified: 2010-02-02 13:55 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 _ 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.