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

Bug 205283

Summary: Launch without subprocesses and debug targets can terminate by default
Product: [Eclipse Project] JDT Reporter: Aleksander Bandelj <aleksander.bandelj>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: chanskw, darin.eclipse
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Aleksander Bandelj CLA 2007-10-03 09:13:14 EDT
Custom LaunchConfigurationDelegate#launch gets org.eclipse.debug.core.Launch from framework as parameter. Launch object has no subprocesses or debug targets and cannot terminate. It remains in debug processes view and can't be removed. 

Workaround is to make custom implementation of IProcess and attach it to launch, but I think that Launch#canTerminate should simply return true if no processes/targets are present.

(This issue occurs in EMF/GMT/Epsilon component)
Comment 1 Darin Wright CLA 2007-12-06 22:43:11 EST
If the launch has not contents (process/debug target), even if it can terminate, how do we know the state (terminated vs. not terminated?) Currently, the launch terminated state is based on the terminated state of the things it contains.
Comment 2 Samantha Chan CLA 2007-12-07 10:26:47 EST
WTP also has the same problem:  Bug 209201
Comment 3 Eclipse Genie CLA 2020-05-13 07:10:43 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.