JDK-4150206 : InputContext.selectInputMethod(null) does not throw exception
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Affected Version: 1.2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.5
  • CPU: generic
  • Submitted: 1998-06-18
  • Updated: 1999-01-04
  • Resolved: 1998-06-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.2.0 1.2fcsFixed
Related Reports
Relates :  
Description
The default behavior is to throw a NullPointerException unless otherwise
specified.  This method does not throw and exception, instead returning
"false".

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.2fcs FIXED IN: 1.2fcs INTEGRATED IN: 1.2fcs VERIFIED IN: 1.2
14-06-2004

SUGGESTED FIX *** /tmp/geta2411 Thu Jun 25 21:20:34 1998 --- InputContext.java Thu Jun 25 21:10:34 1998 *************** *** 56,61 **** --- 56,64 ---- * @see java.awt.im.InputContext#selectInputMethod */ public boolean selectInputMethod(Locale locale) { + if (locale == null) { + throw new NullPointerException(); + } InputMethod inputMethod = getInputMethod(); if (inputMethod == null) { return false; masayoshi.okutsu@Eng 1998-06-26
26-06-1998

EVALUATION Changed sun.awt.im.InputContext.selectInputMethod() to throw a NullPointerException. masayoshi.okutsu@Eng 1998-06-26
26-06-1998