Bug 36941 - [plan item] Harmonize Java source manipulation
Summary: [plan item] Harmonize Java source manipulation
Status: RESOLVED DUPLICATE of bug 71129
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P4 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-25 17:43 EDT by Jim des Rivieres CLA
Modified: 2004-07-29 18:16 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2003-04-25 17:43:31 EDT
Harmonize Java source manipulation. The Java model is currently implemented in 
terms of JDOM, an early precursor of the AST facility added in 2.0. JDT will 
move to an AST- based implementation of the Java model, and deprecate JDOM. 
[JDT Core]
Comment 1 Philipe Mulet CLA 2003-04-28 07:05:18 EDT
The JavaModel is fundamentally different from a DOM AST. It is handle based, 
which allows client to rely on stable references. Each time a DOM AST is 
regenerated, nothing is preserved.

JDOM is only used to generate source. If DOM AST was allowing to be serialized 
out (which we have plan to support for 3.0), then the DOM AST could be used in 
place of JDOM.

One tempting move also is to replace the element info for a unit with a DOM AST 
+ a companion map associating handles to AST subtrees. This would allow clients 
to easily gain access to a common DOM AST.

However, it is very likely that this AST wouldn't carry bindings in their 
current form, since these are holding on too much memory.
Comment 2 Philipe Mulet CLA 2003-04-28 07:12:06 EDT
Also see related bug 36889, which shows the benefits of an underlying AST based 
implementation for the DOM AST.
Comment 3 Jim des Rivieres CLA 2004-07-29 18:16:44 EDT
This plan item is subsumed by 3.1 plan item bug 71129.

*** This bug has been marked as a duplicate of 71129 ***