Parameter::getName()

Eric McCorkle eric.mccorkle at oracle.com
Thu Feb 28 09:50:57 PST 2013


The parameter reflection API reports exactly what is present in a class
file.  It is correct that there is no guarantee parameter names are
unique for a given method (consider, for example, a class file generated
for a non-java language that allows the same name for multiple parameters)

On 02/28/13 12:41, Paul Benedict wrote:
> The opening Javadoc sentences: "Returns the name of the parameter. The
> names of the parameters of a single executable must all the be distinct."
> 
> It was my understanding that parameter names are not necessarily distinct:
> http://mail.openjdk.java.net/pipermail/enhanced-metadata-spec-discuss/2013-February/000148.html
> 
> Paul
> 


More information about the enhanced-metadata-spec-discuss mailing list