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

jshell tool: ctrl-C when in external editor aborts jshell -- history lost

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b156
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Not verified

      Backports

        Description

        jshell> int x = 99
        x ==> 99

        jshell> /set ed kwrite
        | Editor set to: kwrite

        jshell> /ed
        ^C| State engine terminated.
        | Restore definitions with: /reload -restore
        /w/x/dev 1011>> jshell
        | Welcome to JShell -- Version 9-internal
        | For an introduction type: /help intro

        jshell> /rel -restore
        | Restarting and restoring from previous state.

        jshell>

        As seen on Linux, switch focus back to shell window, then ctrl-C.

        Aborts immediately, external editor is closed, history not saved, so code not recoverable. I've created JDK-8173652 to preserve history on crash.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jlahoda Jan Lahoda
                  Reporter:
                  rfield Robert Field
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: