Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337458 - Stacktrace auto format should take "Caused by:" and "... XX more" lines into account
Summary: Stacktrace auto format should take "Caused by:" and "... XX more" lines into ...
Status: CLOSED DUPLICATE of bug 304219
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 11:25 EST by Paul Wagland CLA
Modified: 2017-03-20 09:51 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Wagland CLA 2011-02-17 11:25:37 EST
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.
Comment 1 Markus Keller CLA 2017-03-20 09:51:29 EDT

*** This bug has been marked as a duplicate of bug 304219 ***