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

Bugs with \n and \t characters when committing composed text

    • Fix Understood
    • x86
    • windows_2000



      Name: rmT116609 Date: 05/08/2003


      FULL PRODUCT VERSION :
      java version "1.4.1_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
      Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)

      FULL OS VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      When hitting the Enter (or Tab) key to commit a text being composed, instead of appending a new line '\n' (or a tab '\t') to the composed text, prepending occurs instead.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Download http://prdownloads.sourceforge.net/vietime/VietIME-1.0.1.zip, extract, and install VietIME.jar in jre/lib/ext directory
      2. Launch a Java notepad-like Swing-based application
      (e.g., C:\j2sdk1.4.0\demo\jfc\Notepad)
      3. Select Vietnamese Input Method (VNI)
      4. Type a vowel (a,o,e,i,or y) and then hit Enter key

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      When the Enter key is used to commit a composed text, a new line character '\n' should be appended to the composed text, producing a carriage return after the committed text.

      If the Tab key is used to commit the composed text, a Tab character '\t' should be added *after* the committed text, not *before*.
      Currently, the '\n' is prepended, erroneously sending the committed text to the next, new line.

      Similar with the Tab key (\t), in which the tab is added *before* the committed text, instead of *after*.

      This problem may result from a fix for Bug ID 4712160. The fix may have corrected the bug, but introduced another one.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      http://prdownloads.sourceforge.net/vietime/VietIME-1.0.1-src.zip
      ---------- END SOURCE ----------
      (Review ID: 183762)
      ======================================================================

            naoto Naoto Sato
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: