This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new f3f593a266 clarify doco
f3f593a266 is described below
commit f3f593a266f4d7933e85a6a38a8375553a3f7b4f
Author: Paul King <[email protected]>
AuthorDate: Mon Apr 13 07:00:20 2026 +1000
clarify doco
Thanks to @dilyanpalauzov for raising the documentation inconsistency in PR
#2319
---
src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index a468af9046..decdee8ceb 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -1283,6 +1283,10 @@ public class CompilerConfiguration {
/**
* Checks if invoke dynamic is enabled.
+ * Enabled by default since Groovy 4.0. Can be disabled by setting
+ * the system property {@code groovy.target.indy} to {@code false}
+ * or by setting the {@code indy} optimization option to {@code false}.
+ * The ability to disable may be removed in a future version.
*/
public boolean isIndyEnabled() {
return
!Boolean.FALSE.equals(getOptimizationOptions().get(INVOKEDYNAMIC));