Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8190383

JShell API: no way for the jshell tool to report exit status to provider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • 9
    • tools
    • b33
    • generic
    • generic

      jdk.internal.jshell.tool.JShellToolProvider, which is run by the launcher, reports exit code per Tool.run().

      However, the jdk.jshell.tool.JavaShellToolBuilder API declares run() as a void method, providing no way to exit code from the tool. These occur when:

      (1) The tool fails during launch (e.g. missing load file)

      (2) The user explicitly exits with an exit code (JDK-8185840)

      Solution:
      A new version of the run method is needed in the builder which returns the exit code.
       

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: