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

Currency.isPastCutoverDate should be made more robust

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • b82
    • generic
    • generic

      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.

            coffeys Sean Coffey
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: