Bug 73891 - Should not use String#intern()
Summary: Should not use String#intern()
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 12:32 EDT by Jerome Lanneluc CLA
Modified: 2018-03-06 17:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.