JEP118
Alex Buckley
alex.buckley at oracle.com
Thu May 30 08:48:10 PDT 2013
The fact that you have java.lang.reflect.Parameter at all means that JEP
118 is implemented :-)
A parameter name of the form argX indicates that either there is no
parameter metadata available (i.e. no MethodParameters attribute in the
class file) or there is parameter metadata but this parameter explicitly
has no name. See section 2.3 of
http://cr.openjdk.java.net/~abuckley/8misc.pdf for more.
Alex
On 5/30/2013 2:31 AM, Boaz Nahum wrote:
> I'm building java from lambda/lambda repository
>
> I'm wonder if JEP118 is already there, when I use:
>
>
> Method m ...
> Parameter[] p = m.getParameters();
>
>
> Then p[X].getName() just produces "argX"
>
> Or maybe I'm doing wrong ?
>
> Thank
>
> Boaz
>
>
More information about the compiler-dev
mailing list