Project: Eclipse_Platform_UI
Bug 116770 [Viewers] Memory leak in TreeViewerTest, or TreeViewer, or Tree
Reported: 2005-11-16 21:15:04 | Status: verified fixed

The JFace tests produce OutOfMemoryErrors if you add the tests from TreeViewerTest multiple times, as in: addTestSuite(TreeViewerTest.class); addTestSuite(TreeViewerTest.class); addTestSuite(TreeViewerTest.class); addTestSuite(TreeViewerTest.class); addTestSuite(TreeViewerTest.class); Of all test methods, testBulkExpand seems to leak the most memory (25k), determined by poor man's leak checking with Runtime.getRuntime().freeMemory(). Nick, would you have time to look at this together? I don't have a tool for diagnosing memory leaks.

Files changed in fix:
tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/AllTests.java tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/viewers/AbstractTreeViewerTest.java tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/viewers/ViewerTestCase.java