- 
    Bug 
- 
    Resolution: Fixed
- 
     P2 P2
- 
    9
- 
        b156
- 
        x86
- 
        linux
- 
        Not verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8174521 | 10 | Jan Lahoda | P2 | Resolved | Fixed | b01 | 
                    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 createdJDK-8173652 to preserve history on crash.
            
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
- backported by
- 
                    JDK-8174521 jshell tool: ctrl-C when in external editor aborts jshell -- history lost -           
- Resolved
 
-         
- relates to
- 
                    JDK-8173652 jshell tool: store history on fatal exit -           
- Closed
 
-