-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b134
-
x86_64
-
linux
-
Verified
FULL PRODUCT VERSION :
JDK1.9b120
ADDITIONAL OS VERSION INFORMATION :
4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
NetBeans Development version, build 20160602
A DESCRIPTION OF THE PROBLEM :
If jshell is started from within NetBeans terminal window and the editor is set to NetBeans, then saving the edited statement list is ignored by the jshell
Unclear whether this is a NetBeans or jshell issue. I filed the same problem to NB
https://netbeans.org/bugzilla/show_bug.cgi?id=262315
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
STEPS:
1* download JDK 9 (actual: build 120)
2* launch jshell
3* /set editor netbeans-dev-201606020002/bin/netbeans (or appropriate path)
4* enter Java statement
5* /edit
--> Netbeans will be started if not yet running, Java statements of jshell session will be displayed
6* modify or add statement(s)
7* press ctrl+S to save
--> jshell uses the modified commands
8* open terminal window (window, ide tools, terminal)
9* perform steps 2* to 7* using the terminal window
--> jshell ignores the modified data
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
jshell accepts the modified statements
ACTUAL -
jshell ignores the edited statements
REPRODUCIBILITY :
This bug can be reproduced always.
JDK1.9b120
ADDITIONAL OS VERSION INFORMATION :
4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
NetBeans Development version, build 20160602
A DESCRIPTION OF THE PROBLEM :
If jshell is started from within NetBeans terminal window and the editor is set to NetBeans, then saving the edited statement list is ignored by the jshell
Unclear whether this is a NetBeans or jshell issue. I filed the same problem to NB
https://netbeans.org/bugzilla/show_bug.cgi?id=262315
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
STEPS:
1* download JDK 9 (actual: build 120)
2* launch jshell
3* /set editor netbeans-dev-201606020002/bin/netbeans (or appropriate path)
4* enter Java statement
5* /edit
--> Netbeans will be started if not yet running, Java statements of jshell session will be displayed
6* modify or add statement(s)
7* press ctrl+S to save
--> jshell uses the modified commands
8* open terminal window (window, ide tools, terminal)
9* perform steps 2* to 7* using the terminal window
--> jshell ignores the modified data
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
jshell accepts the modified statements
ACTUAL -
jshell ignores the edited statements
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-8158739 jshell tool: shell does not recognize changes of code snippets if editor is not launched by jshell
-
- Closed
-
- relates to
-
JDK-8162989 jshell tool: /edit with external editor leaks files in /tmp
-
- Resolved
-