Details

    • Subcomponent:
    • Verification:
      Verified

      Description

      A new option is available to provide more helpful `NullPointerException` messages:

           -XX:+ShowCodeDetailsInExceptionMessages

      If the option is set, on encountering a null pointer, the JVM analyzes the program to determine which reference was `null` and then provides the details as part of `NullPointerException.getMessage()`. In addition to the exception message, the method, filename, and line number are also returned.

      By default, this option is disabled.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coleenp Coleen Phillimore
                Reporter:
                dholmes David Holmes
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: