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

Don't swallow early bootstrap exceptions in Boolean.getBoolean, Integer.getInteger and Long.getLong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 9, 10
    • core-libs
    • None
    • b26

      JDK-8178832 has shown that System.getProperty(String) may throw NullPointerException not only because the property name passed to it is null, but also as a result of calling it too early in the VM bootstrap sequence. Such exceptions should not be silently swallowed as they mask bugs. Normal flow control should generally not be based on exceptions, so Boolean.getBoolean, Integet.getInteger and Long.getLong should be fixed.

            plevart Peter Levart
            plevart Peter Levart
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: