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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • tools
    • b156
    • x86
    • linux
    • Not verified

        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.

              jlahoda Jan Lahoda
              rfield Robert Field (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: