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.

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/2719a1f55cd8
            User: jlahoda
            Date: 2017-02-06 10:11:23 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/2719a1f55cd8 User: jlahoda Date: 2017-02-06 10:11:23 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/d22a3e726157
            User: jlahoda
            Date: 2017-02-06 10:13:51 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/d22a3e726157 User: jlahoda Date: 2017-02-06 10:13:51 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/d22a3e726157
            User: lana
            Date: 2017-02-08 19:29:28 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/d22a3e726157 User: lana Date: 2017-02-08 19:29:28 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/2719a1f55cd8
            User: lana
            Date: 2017-02-08 19:31:50 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/2719a1f55cd8 User: lana Date: 2017-02-08 19:31:50 +0000

              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: