Bug 73891

Summary: Should not use String#intern()
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=532088
Whiteboard:

Description Jerome Lanneluc CLA 2004-09-14 12:32:08 EDT
I20040914

We should not use String#intern() as it can prevent the strings to be garbage 
collected on some VMs. Instead we should have our own WeakHashMap to intern 
strings.
Comment 1 Jerome Lanneluc CLA 2004-09-16 11:37:44 EDT
Implemented JavaModelManager#intern(String) that uses a WeakHashSet to intern 
strings.
Comment 2 Frederic Fusier CLA 2004-09-23 10:48:46 EDT
Verified for 3.1 M2 with build I200409230010.