groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Grealy <>
Subject Access to Parameter Names at Runtime
Date Mon, 11 May 2015 07:11:42 GMT
Hi all,

Following on from this thread on the old mailing list

Given that JDK8 now supports accessing parameter names at runtime
<>, I'd like to incorporate this behaviour
into the Groovy compiler.

I'm proposing adding a command line/configuration change to the groovyc
compiler, to add reflective information to the compiled bytecode (i.e. the
parameter names).

I'm not proposing any changes to the current behaviour of method invocation
(using named parameters).

Some points for discussion:

1) JDK8 parameter names are available in the compiled bytecode, which is
not backwards compatible. I don't see this as a problem, as long as it's
well documented.

2) JEP118 <> is enabled by using the
compiler command "-parameters". Should we be consistent and use
"-parameters" for the groovyc compiler, or have a more descriptive
parameter name?




View raw message