You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/04/19 09:32:39 UTC

[groovy] branch GROOVY-9513 updated: Tweak checking indy in `WriterController` class

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY-9513
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY-9513 by this push:
     new 693dbfb  Tweak checking indy in `WriterController` class
693dbfb is described below

commit 693dbfb887d627c1557e201b763dee36b5a12476
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Apr 19 17:32:25 2020 +0800

    Tweak checking indy in `WriterController` class
---
 src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java b/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
index fe8dc41..c17c471 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
@@ -87,7 +87,7 @@ public class WriterController {
             this.optimizeForInt = false;
             // set other optimizations options to false here
         } else {
-            if (Boolean.TRUE.equals(optOptions.get(CompilerConfiguration.INVOKEDYNAMIC))) invokedynamic = true;
+            if (config.isIndyEnabled()) invokedynamic = true;
             if (Boolean.FALSE.equals(optOptions.get("int"))) this.optimizeForInt = false;
             if (invokedynamic) this.optimizeForInt = false;
             // set other optimizations options to false here