You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/07/28 18:37:00 UTC

[jira] [Created] (GROOVY-8718) GroovyConsole MacOS fix required for JDK9+

Paul King created GROOVY-8718:
---------------------------------

             Summary: GroovyConsole MacOS fix required for JDK9+
                 Key: GROOVY-8718
                 URL: https://issues.apache.org/jira/browse/GROOVY-8718
             Project: Groovy
          Issue Type: Bug
            Reporter: Paul King


As per http://openjdk.java.net/jeps/272, com.apple.eawt is not supported for JDK9+ and we use that via e.g. MRJPrefsHandler. If I understand correctly, the functionality seems mostly incorporated into java.awt.Desktop.

A common workaround (to maintain JDK8 compatibility and work on JDK9+) seems to be to use reflection to access the new classes, e.g.:
https://github.com/SubOptimal/keystore-explorer/blob/master/kse/src/org/kse/gui/MacOsIntegration.java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)