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

Unexpected preedit character seen with Taiwan's New Phonetic IME

XMLWordPrintable

      SYNOPSIS
      --------
      Unexpected preedit character seen with Taiwan's New Phonetic IME

      OPERATING SYSTEM
      ----------------
      Windows Server 2003 R2 Enterprise SP2

      FULL JDK VERSION
      ----------------
      Java7 for Windows (x86)

      java version "1.7.0_01"
      Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
      Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode)

      java version "1.6.0_29"
      Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
      Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode)

      DESCRIPTION
      -----------
      During a focus change operation in a multi-window environment, an unexpected preedit character is seen with Taiwan's New Phonetic IME.

      REPRODUCTION INSTRUCTIONS
      -------------------------
       1. Windows should have Microsoft New Phonetic IME 2002a.

       2. Windows should have Chinese (Tradional) - US Keyboard. If it's
          missing, please install it via "Regional and Language Options" from
          Windows' Control Panel

       3. Compile and run the attached test program:
            > javac JTextAreaTest3.java
            > java JTextAreaTest3 aaa bbb

          If you are using English Windows:
            > java -Duser.language=zh -Duser.country=TW JTextAreaTest3 aaa bbb

       4. Two windows are displayed. Move "bbb" window to the right side of
          the "aaa" window

       5. Move input focus to "aaa", and change IME to "Chinese (Traditional)
          New Phonetic IME" via language bar or keyboard

       6. Type "cj8". A blue square predit character is displayed in the "aaa"
          window. Windows' preedit character is displayed on center of Desktop
          or somewhere.

       7. Move input focus to "bbb" without committing preedit character on
          "aaa"

       8. Change IME to "Chinese (Taiwan)"

       9. Move input focus to "aaa", but preedit character is still there.

      10. Delete it by Del or Backspace key, then press Enter key. The preedit
          character is displayed again <== PROBLEM

      TESTCASE
      --------
      import java.awt.*;
      import javax.swing.*;

      public class JTextAreaTest3 extends JFrame {
          JTextAreaTest3(String title) {
              super(title);
              getContentPane().add(new JTextArea(), BorderLayout.CENTER);
              setSize(300, 300);
              setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
              setVisible(true);
          }
          public static void main(String[] args) {
              for (int i=0; i<args.length; i++)
                  new JTextAreaTest3(args[i]);
          }
      }

            nishjain Nishit Jain
            dkorbel David Korbel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: