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

Bug 341868

Summary: clean up RTServices.destroy
Product: [Modeling] eTrice Reporter: Thomas Schuetz <ts>
Component: CoreAssignee: Project Inbox <etrice.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: hrr
Version: 0.1.0Flags: hrr: indigo+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: 0.1.0

Description Thomas Schuetz CLA 2011-04-05 03:25:09 EDT
RTServices.destroy only invalidates toplevel elements
the garbage collector will most probably fail in collecting the rest
destroy was introduced for the testcases that run in the same process. The singleton RTServices failed for multiple SubSystem Tests (integration.test)
Comment 1 Henrik Rentz-Reichert CLA 2013-01-17 09:56:08 EST
Is this report still valid?

I think the garbage collector will also recycle nested elements.
Comment 2 Thomas Schuetz CLA 2015-05-29 13:09:54 EDT
Situation has changed with new Java Generator generating hierarchically instead of flat.
Tested - works for me