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

IMFSetCharacterSubsetTest test fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: