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

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9, 10
    • Fix Version/s: tbd_major
    • Component/s: core-libs
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              plevart Peter Levart
              Reporter:
              plevart Peter Levart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: