groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 05/05: GROOVY-9121: Default compiler configuration is modified by GroovyMain
Date Fri, 17 May 2019 02:45:14 GMT
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

commit 60c102a2c8c93794cecde4cee7a8b43e510ba538
Author: Paul King <paulk@asert.com.au>
AuthorDate: Fri May 17 12:44:55 2019 +1000

    GROOVY-9121: Default compiler configuration is modified by GroovyMain
---
 src/main/groovy/groovy/ui/GroovyMain.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/groovy/groovy/ui/GroovyMain.java b/src/main/groovy/groovy/ui/GroovyMain.java
index e6702e4..d227357 100644
--- a/src/main/groovy/groovy/ui/GroovyMain.java
+++ b/src/main/groovy/groovy/ui/GroovyMain.java
@@ -281,7 +281,7 @@ public class GroovyMain {
             }
 
             if (indy) {
-                CompilerConfiguration.DEFAULT.getOptimizationOptions().put("indy", true);
+                System.setProperty("groovy.target.indy", "true");
                 main.conf.getOptimizationOptions().put("indy", true);
             }
 


Mime
View raw message