Metadata about parameter names

Alex Buckley alex.buckley at oracle.com
Tue Jun 18 16:51:11 PDT 2013


Prompted by discussions on jdk8-dev [1], I have specified an 
isNamePresent() method in java.lang.reflect.Parameter. It exposes 
whether the parameter has a name _according to the MethodParameters 
attribute_. Non-Java clients can use it to determine whether the 
parameter "really" has a name, because for the sake of Java clients, a 
parameter always has a name _according to getName()_ even if we have to 
synthesize it.

The mini-spec for this method is at [2] and the enhanced metadata spec 
incorporates it for completeness [3].

Alex

[1] http://mail.openjdk.java.net/pipermail/jdk8-dev/2013-June/002658.html
[2] http://bugs.sun.com/view_bug.do?bug_id=8016285
[3] http://cr.openjdk.java.net/~abuckley/8misc.pdf


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