Community
Participate
Working Groups
JUnit set-up in a fresh workspace (started with the default settings) 1) select junit.samples.money.Money.add(IMoney) 2) execute Navigate>Go to>Referring Tests ->you get an out of memory exception. The same scenario works for other methods. I'm pretty sure that this worked in M3. Thread [ModalContext] (Suspended (exception OutOfMemoryError)) MatchingOpenable.locateMatchesInCompilationUnit(char[]) line: 327 MatchingOpenable.locateMatches() line: 180 MatchLocator.locateMatches(JavaProject) line: 1224 MatchLocator.locateMatches(String[], IWorkspace, IWorkingCopy[]) line: 529 SearchEngine.search(IWorkspace, ISearchPattern, IJavaSearchScope, IJavaSearchResultCollector) line: 430 SearchEngine.search(IWorkspace, IJavaElement, int, IJavaSearchScope, IJavaSearchResultCollector) line: 362 TestMethodSelectionDialog.doSearchTestMethods(IJavaElement, IType, IProgressMonitor) line: 177 TestMethodSelectionDialog.access$0(TestMethodSelectionDialog, IJavaElement, IType, IProgressMonitor) line: 174 TestMethodSelectionDialog$1.run(IProgressMonitor) line: 164 ModalContext$ModalContextThread.run() line: 95
Where can we find the description of a JUnit set-up (could be the problem here<g>) ?
This is set-up is created with the JDT example project wizard. The code is in org.eclipse.jdt.ui.examples.projects Theplug-in adds an example wizard in the New dialog: New>Examples>Java
Improved memory management during search (by releasing CompilationUnitDeclarations as soon as we're done with it).
Verified.