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

Improve unclear and incomplete Exception stack trace

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None
    • Generic

    • generic
    • generic

      An exception has a tree-like structure with causes and suppressed exceptions for each node.

      Java stack trace is incomplete and not ideal for showing a possible complex structure of Exception.

      See proposal visually in att. - java_new_stacktrace_diff_proposal.png

      Standard stack trace & proposed, please see in att. as well.

      For better trouble-shooting and stack trace visibility it should be improved.
      I believe that it is an extremely important change.

      Now we have to implement own stack trace output utils to see proper stack trace + it is not supported by other libraries and utils (e.g. log4j, etc.) Therefore it should be supported on Java/JVM level.

      Examples and draft implementation of the newly proposed stack trace: source code, project for Intellij Idea, examples, etc. can be provided.

        1. java_new_stacktrace_diff_proposal.png
          java_new_stacktrace_diff_proposal.png
          261 kB
        2. new.txt
          3 kB
        3. old.txt
          1 kB

            Unassigned Unassigned
            aermykin Alexey Ermykin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: