Bug 89110 - Redundant information in SourceTypeElementInfo
Summary: Redundant information in SourceTypeElementInfo
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2005-03-25 11:52 EST by Jerome Lanneluc CLA
Modified: 2005-03-31 06:20 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 2005-03-25 11:52:29 EST
I20050324

The SourceTypeElementInfo instances (hold on by the JavaModelCache) contain
redundant information (that can be computed from the handle):
- package name
- file name
Comment 1 Jerome Lanneluc CLA 2005-03-25 11:57:32 EST
Removed the fields 'packageName' and 'fileName' from SourceTypeElementInfo.
Removed ISourceType#getPackageName().
Changed SourceTypeElementInfo#getFileName() to use the handle to compute the
file name.
Changed SourceTypeConverter to use the cu handle's parent to get the package name.
Comment 2 David Audel CLA 2005-03-31 06:20:43 EST
Verified in I20050330-0500