JDK-7197187 : Currency.isPastCutoverDate should be made more robust
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-09-09
  • Updated: 2013-03-22
  • Resolved: 2013-02-19
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 8
8 b82Fixed
Related Reports
Relates :  
Description
The changes for 7180362 are here:

http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fffbb33df102

One oddity with this code is that isPastCutoverDate is declared to throw NullPointerExcepiton and IndexOutOfBoundsException but they are runtime exceptions. Furthermore the caller (replaceCurrencyData) is catching and ignoring these exceptions which is very odd and potentially could hide other bugs that cause NullPointerExcepiton to be thrown.

This bug is submitted as a reminder that this code should re-examined and cleaned up. This should be done before the changes are back-ported to jdk7u.