JDK-8210414 : jshell - editing of the first line in multi-line commands causes visual bugs
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2018-09-04
  • Updated: 2018-12-10
  • Resolved: 2018-12-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12Resolved
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Windows 10.0.17134.48
cmd + PowerShell 5.1.17134.48

openjdk 12-ea 2019-03-19
OpenJDK Runtime Environment 19.3 (build 12-ea+9)
OpenJDK 64-Bit Server VM 19.3 (build 12-ea+9, mixed mode)


A DESCRIPTION OF THE PROBLEM :
Please follow the steps to reproduce to see what I mean. Because editing the first line causes visual bugs, editing a multi-line command becomes very burdensome.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
open a shell window (the issue exists with both cmd.exe and powershell.exe) and run jshell:
* paste the following command (don't hit Enter yet)
var a = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
* hit Home, move to the beginning of the String, and hit 'b'
-> 'b' appears, but the second line hasn't changed (since I added a character on the first line, the 'a' at the end should have shifted to the second line)
* hit 'b' again
-> nothing visually changes
* hit Enter
-> the result of the command is correct: 2 'b' characters were added at the beginning of the String
* hit the Up arrow and hit Home
-> the cursor is in front of 'var'
* hit Delete 3 times
-> the beginning of the line is now: jshel a = "...
* hit Enter
-> despite the visual bugs, the result is correct: hitting Delete 3 times simply removed 'var' from the command



Comments
Should be improved with JDK-8214491.
10-12-2018

There is no functionality change, it is impacting only ui on windows.
05-09-2018

This issue is reproducible only on wiondows. Verified with 11 and 12 builds.
05-09-2018