JDK-6312358 : NullPointerException should be thrown in Locale.getInstance with null arguments
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-08-17
  • Updated: 2010-04-03
  • Resolved: 2005-09-12
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.
JDK 6
6 b52Fixed
Related Reports
Relates :  
Description
The package private method Locale.getInstance(String, String, String) spec says that it should thrown a NullPointerException if any argument is null.  Currently, the exception is not thrown, instead String "null" is added for the null parameter.

Comments
EVALUATION null check should be added before creating the cache key.
17-08-2005