JDK-5052664 : (reflect) Add Method.getParameterNames which returns an array of param names
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-05-25
  • Updated: 2012-09-28
  • Resolved: 2006-08-11
Related Reports
Duplicate :  
Description
###@###.### 2004-05-25

RFE request to add a method to Method:

  String[] getParameterNames()

This would return an array the same length as getParameterTypes() 
containing the names of the parameters to the method. If the class is 
compiled without debug information, then this would return null.

Support for this would make it much easier to reflectively implement 
things like web service stubs.

Comments
EVALUATION Duplicate of 5082475.
11-08-2006