Community
Participate
Working Groups
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]
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.
Also see related bug 36889, which shows the benefits of an underlying AST based implementation for the DOM AST.
This plan item is subsumed by 3.1 plan item bug 71129. *** This bug has been marked as a duplicate of 71129 ***