groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch GROOVY_2_5_X updated: GROOVY-9018: WARNING: package sun.awt.windows not in java.desktop
Date Tue, 12 Mar 2019 04:53:43 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
     new 6fa1eb0  GROOVY-9018: WARNING: package sun.awt.windows not in java.desktop
6fa1eb0 is described below

commit 6fa1eb0f9240b4fef3a94a2748958ca901ee0c57
Author: Paul King <paulk@asert.com.au>
AuthorDate: Tue Mar 12 14:51:19 2019 +1000

    GROOVY-9018: WARNING: package sun.awt.windows not in java.desktop
    
    Removed for *nix unless cygwin/msys detected
---
 src/bin/startGroovy | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/startGroovy b/src/bin/startGroovy
index dfd5cc5..2570a29 100644
--- a/src/bin/startGroovy
+++ b/src/bin/startGroovy
@@ -281,7 +281,11 @@ startGroovy ( ) {
     JAVA_VERSION=`"$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}' | cut
-d "_" -f1`
     if [ "$JAVA_VERSION" \> "1.8.0" ]; then
     		JAVA_OPTS="$JAVA_OPTS -Dgroovy.jaxb=jaxb"
-    		[ "$GROOVY_TURN_OFF_JAVA_WARNINGS" = "true" ] &&       JAVA_OPTS="$JAVA_OPTS
--add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.annotation=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.module=ALL-UNNAMED
--add-opens=java.base/java.lang.ref=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.math=ALL-UNNAMED --add-opens=java.base/ [...]
+    		[ "$GROOVY_TURN_OFF_JAVA_WARNINGS" = "true" ] &&       JAVA_OPTS="$JAVA_OPTS
--add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.annotation=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.module=ALL-UNNAMED
--add-opens=java.base/java.lang.ref=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.math=ALL-UNNAMED --add-opens=java.base/ [...]
+            # sun.awt.windows just on windows platforms
+            if [ $msys -o $cygwin ] ; then
+    		    [ "$GROOVY_TURN_OFF_JAVA_WARNINGS" = "true" ] &&       JAVA_OPTS="$JAVA_OPTS
--add-opens=java.desktop/sun.awt.windows=ALL-UNNAMED"
+    		fi
     fi
 
     CLASS=$1


Mime
View raw message