Parameter::getName()
Alex Buckley
alex.buckley at oracle.com
Thu Feb 28 10:57:48 PST 2013
Eric,
JDK-8007405 is marked as fixed in b78, but the corresponding changeset
(f21a4b761424) still has Parameter#getName saying parameter names "must
all the be distinct" (and some other spelling errors).
Alex
On 2/28/2013 9:50 AM, Eric McCorkle wrote:
> 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