Bug 37750 - incorrect handle identifier for IImportContainer
Summary: incorrect handle identifier for IImportContainer
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-16 06:28 EDT by Adam Kiezun CLA
Modified: 2003-07-18 07:34 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2003-05-16 06:28:34 EDT
20030506
A.java
import java.util.List;
class A{
}


create handle identifier for thew import container
it's the same (incorrectly) as the handle for its enclosing compilation unit

so things like
IJavaElement importContainer= cuA.getImportContainer();
String handle= importContainer.getHandleIdentifier();
IJavaElement sameImportContainer= JavaCore.create(handle);

don't work: sameImportContainer is actually an ICompilationUnit
Comment 1 Philipe Mulet CLA 2003-05-26 06:53:23 EDT
Fixed. Import containers can now be persisted through memento correctly. No 
change in import declaration mementos (trailing '#' is associated with import 
container directly).
Comment 2 Philipe Mulet CLA 2003-05-26 06:55:17 EDT
Fixed
Comment 3 Philipe Mulet CLA 2003-05-26 06:55:36 EDT
Forgot to assign
Comment 4 Philipe Mulet CLA 2003-05-26 06:56:04 EDT
Fixed
Comment 5 David Audel CLA 2003-07-18 07:34:14 EDT
Verified.