| Summary: | Stacktrace auto format should take "Caused by:" and "... XX more" lines into account | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Paul Wagland <paul> |
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, markus.kell.r |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
*** This bug has been marked as a duplicate of bug 304219 *** |
Build Identifier: M20110210-1200 When I paste in the following (well formatted) stacktrace: Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException at Test.call0(test.java:9) at Test.main(test.java:3) Caused by: java.lang.RuntimeException: java.lang.NullPointerException at Test.call2(test.java:19) at Test.call1(test.java:13) at Test.call0(test.java:7) ... 1 more Caused by: java.lang.NullPointerException at Test.call3(test.java:23) at Test.call2(test.java:17) ... 3 more and auto format is turned on, then it gets turned into: Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException at Test.call0(test.java:9) at Test.main(test.java:3)Caused by: java.lang.RuntimeException: java.lang.NullPointerException at Test.call2(test.java:19) at Test.call1(test.java:13) at Test.call0(test.java:7) ... 1 moreCaused by: java.lang.NullPointerException at Test.call3(test.java:23) at Test.call2(test.java:17) ... 3 more That is, the "... X more" and "Caused by: YYY" lines get incorrectly appended to the previous line. It would be more convenient if these could be formatted as in the original format. I normally leave the auto format option enabled, since I often get incorrectly formatted stack-traces as well. Reproducible: Always Steps to Reproduce: 1. paste the stacktrace as entered above.