GitHub user nickgrealy opened a pull request: https://github.com/apache/incubator-groovy/pull/15
Access to Method parameter names at runtime Given that JDK8 now supports [accessing parameter names at runtime](http://openjdk.java.net/jeps/118), I've incorporated this behaviour into the Groovy code base (configurable). Configuration is similar to the javac ```-parameters``` parameter... It can be enabled by passing ```-pa``` or ```--parameters``` to the ```groovy``` or ```groovyc``` executables, or alternatively, you can set the ```-Dparameters``` system property. Happy to have feedback on changes/suggestions. Thanks to Jochen Theodorou for showing me where to get started! Reference: [mail-archives](http://mail-archives.apache.org/mod_mbox/incubator-groovy-dev/201505.mbox/%3CCAK%2BHH6c1Z0FwWPY709uVccWe919viTw%3DRMS5%2BeN9P%2B16Qp7g8Q%40mail.gmail.com%3E) You can merge this pull request into a Git repository by running: $ git pull https://github.com/nickgrealy/incubator-groovy master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-groovy/pull/15.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #15 ---- commit 1984a6414a9e4c6597499af2d9770c891e46e850 Author: Nick Grealy <nickgre...@gmail.com> Date: 2015-05-13T09:19:17Z Added JEP118 to groovyc commit 69148f99811cb79371d24181c5003dec4ab77bc9 Author: Nick Grealy <nickgre...@gmail.com> Date: 2015-05-13T09:34:31Z Added JEP118 to groovy Changed 'p' cli option to 'pa', so as not to clash with existing bin\groovy param. commit 3bcf47b5683507d21c00b57520c7cf222391450d Author: Nick Grealy <nickgre...@gmail.com> Date: 2015-05-13T10:53:30Z Added opt JEP118 configuration via System property. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---