Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324883

Summary: Java Stack Trace Console should support traces copied from the Debug view
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: t.orf
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Markus Keller CLA 2010-09-09 14:07:04 EDT
HEAD

The Java Stack Trace Console should support traces copied from the Debug view. Currently, neither hyperlinking nor formatting works e.g. on this input:

Thread [main] (Class load: org.eclipse.ui.console.ConsolePlugin)	
	owns: org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader  (id=159)	
	owns: org.eclipse.swt.widgets.RunnableLock  (id=160)	
	owns: org.eclipse.swt.widgets.RunnableLock  (id=161)	
	java.lang.Class<T>.getDeclaredConstructors0(boolean) line: not available [native method]	
	java.lang.Class<T>.privateGetDeclaredConstructors(boolean) line: 2357	
	java.lang.Class<T>.getConstructor0(java.lang.Class[], int) line: 2671	
	java.lang.Class<T>.newInstance0() line: 321	
	java.lang.Class<T>.newInstance() line: 303	
	org.eclipse.osgi.framework.internal.core.BundleHost(org.eclipse.osgi.framework.internal.core.AbstractBundle).loadBundleActivator() line: 153	
	org.eclipse.osgi.framework.internal.core.BundleContextImpl.start() line: 675	
	org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(int) line: 378	
	org.eclipse.osgi.framework.internal.core.BundleHost(org.eclipse.osgi.framework.internal.core.AbstractBundle).start(int) line: 286	
	org.eclipse.osgi.framework.util.SecureAction.start(org.osgi.framework.Bundle, int) line: 440	
	org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger() line: 265	
	...
Comment 1 T. Orf CLA 2013-02-08 08:06:01 EST
Wouldn't it be even better if the debug view could copy the standard format that the console already supports?
Comment 2 Eclipse Genie CLA 2020-09-21 15:41:30 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 T. Orf CLA 2020-10-13 10:20:32 EDT
Still relevant as of Version: 2020-06 (4.16.0) Build id: 20200615-1200.

Workaround: Evaluate this code in the "Expressions" or "Debug Shell" view:

	java.io.StringWriter w = new java.io.StringWriter();
	new RuntimeException("DUMMY STACK TRACE").printStackTrace(new java.io.PrintWriter(w, true));
	w.toString();
Comment 4 Eclipse Genie CLA 2022-10-16 18:47:53 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.