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

JShell wrongly processes the '&' character

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows

      Description

      FULL PRODUCT VERSION :
      Java; VM; Vendor = 9; Java HotSpot(TM) 64-Bit Server VM 9+181;
       Runtime = Java(TM) SE Runtime Environment 9+181


      ADDITIONAL OS VERSION INFORMATION :
      Operating System = Windows 10 version 10.0 running on amd64


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Standard Czech keyboard with QWERTZ layout

      A DESCRIPTION OF THE PROBLEM :
      When the standard Czech keyboard is set, the JShell program does not accept the character '&' as logical operator.
      The program reaction is the same, if I enter this letter from the keyboard (Alt+Ctrl+C) or if I paste it from the clipboard -- in both way the line is untimely ended.





      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Set the standard czech keyboard (not the QWERTY one)
      2. Run the JShell program
      3. Write: 123 & 456

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      jshell> 123 & 456
      $1 ==> 72
      | created scratch variable $1 : int

      jshell>
      ACTUAL -
      jshell> 123

      jshell> 456

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Set another keyboard than the standard one or keayboard for another language.

      I think, it can happen also in keyboard layouts for certain other languages. Microsoft.

        Attachments

          Activity

            People

            • Assignee:
              jlahoda Jan Lahoda
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: