Metadata about parameter names
Alex Buckley
alex.buckley at oracle.com
Wed Jul 3 19:47:30 PDT 2013
FYI isNamePresent() has been added to j.l.r.Parameter [1].
Alex
[1] http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a8f51c3341a5
On 6/18/2013 4:51 PM, Alex Buckley wrote:
> 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