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

IMFSetCharacterSubsetTest test fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 9
    • client-libs

      OS: ALL
      Build: JDK 9 120

      steps to reproduce:
      #Create a new J text field
      tfKata = new JTextField(20);
      #Set the field only accept a part of unicode characters
      getContentPane().add(setPanel(tfHKata,
                                                "Character.UnicodeBlock.KATAKANA"));
      tfHKata.addFocusListener(new FocusAdapter() {
                      public void focusGained(FocusEvent e) {
                          InputContext ic = tfHKata.getInputContext();
                          Character.Subset[] s = { Character.UnicodeBlock.KATAKANA };
                          ic.setCharacterSubsets(s);
                      }
                  });

      Actual results:
      any kind of characters can be typed in all text fields.

      Expected Results:
      only restricted characters can be typed.

            Unassigned Unassigned
            yliu Johnny Liu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: