This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_5_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_5_0_X by this push:
new e4c7da7424 clarify doco
e4c7da7424 is described below
commit e4c7da7424880fd9c29073d6c45eb3be9fa3a71d
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));