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

Solaris2.6 2.7: InputContext.selectInputMethod(Locale.JAPANESE) returns false.

    Details

      Description

      On both Solaris 2.6 and 2.7 whether ja or ja_JP_PCK locale,
      InputContext.selctInputMethod(Locale.JAPANESE) returns false.

      To reproduce it, please compile and run attached program "InputMethodTest2.java".
      When a button below in the window is pushed, this program is expected to print true and to be able to input KATAKANA.
      On Windows, it works correctly.
      But results on Solaris are following.



      OS :Solaris 2.6 2.7
      Locale :ja, ja_JP_PCK

      java version "1.3"
      Classic VM (build JDK-1.3-J, green threads, sunwjit)
      ------------------------------------------------------
      InputContext =sun.awt.im.InputMethodContext@cfe22a4b
      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at sun.awt.im.ExecutableInputMethodManager.findInputMethod(InputMethodManager.java, Compiled Code)
              at sun.awt.im.InputContext.selectInputMethod(InputContext.java, Compiled Code)
              at InputMethodTest2.actionPerformed(InputMethodTest2.java, Compiled Code)
              at java.awt.Button.processActionEvent(Button.java, Compiled Code)
              at java.awt.Button.processEvent(Button.java, Compiled Code)
              at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
              at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, Compiled Code)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java, Compiled Code)
      *This result has already filed as BugID 4243948.


      java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, green threads, sunwjit)
      -------------------------------------------------------
      InputContext =sun.awt.im.InputMethodContext@7906fefc
      selectInputMethod =false


      java version "1.2"
      Classic VM (build JDK-1.2-V, green threads, sunwjit)
      ------------------------------------------------------
      InputContext =sun.awt.im.InputMethodContext@79ea786f
      selectInputMethod =false



        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                okutsu Masayoshi Okutsu
                Reporter:
                eishidasunw Etsuko Ishida (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: