Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8460

Calling console.run() causes an error on Mac OS with Java 9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.13
    • None
    • Groovy Console
    • None
    • Mac OS, JAVA 9

    Description

      sample code:

      groovy.ui.Console console = new groovy.ui.Console();

      console.run();

       

      This throws errors when run on Mac OS with JAVA 9:

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

      script15169878466701558877614.groovy: 6: unable to resolve class MRJQuitHandler 

       @ line 6, column 1.

         class ConsoleMacOsSupport implements MRJQuitHandler, MRJAboutHandler {

         ^

       __ 

      script15169878466701558877614.groovy: 6: unable to resolve class MRJAboutHandler 

       @ line 6, column 1.

         class ConsoleMacOsSupport implements MRJQuitHandler, MRJAboutHandler {

         ^

       __ 

      2 errors

       

      The issue is probably linked to the reflective access to internal Apple APIs through the OSX Adapter, which is flagged as illegal and blocked in Java 9.

       

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              bart.jourquin@uclouvain.be Bart Jourquin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: