Using Grails with Groovy's invoke dynamic feature
Asked Answered
C

0

6

In Groovy 2.1, full support was added for invokedynamic (see here and here).

In order to use this feature, it looks like JDK7 is required and the "indy" Groovy jar.

I'm using Grails 2.4.3, with JDK7 and Groovy 2.3, so it seems like this should be possible, and it also seems like it would help Grails performance somewhat.

My question is this: Can Grails make use of this, and if so how?

Here's a similar question from a while back that covers similar ground.

Comyns answered 22/10, 2014 at 15:47 Comment(3)
Groovy did add support for indy, but the default was only for JDK 8. With JDK 7 it is possible to use it and you can enable it, but they turned it off by default, because it caused too many problems. So maybe it would be a good idea to switch to JDK 8 ;)Trinhtrini
Thanks! Is there anything specific that needs to be done to make use of it? Any config file changes or anything? Or just switching to JDK 8?Comyns
This seems related: jira.grails.org/browse/GRAILS-11657Sycamore

© 2022 - 2024 — McMap. All rights reserved.