Bug 23492

Summary: [DOM/AST] lazy init should not count as a modification
Product: [Eclipse Project] JDT Reporter: Jim des Rivieres <jeem>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M1   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 22560    

Description Jim des Rivieres CLA 2002-09-12 12:00:06 EDT
There are various places in the DOM/AST implementation that
lazily create nodes for the default child values. This is done
when the child value is read. However, when it creates the
node and sets the field the modification count is increased.
This results, for example, in all bindings being thrown away!

Lazy creation of children is an internal implementation detail.
The client is really just reading the value of a property, not
modifying anything. Consequently, these node creations and
modifications should not count.
Comment 1 Olivier Thomann CLA 2002-09-12 12:59:24 EDT
Fixed and released in 2.1 stream.
Comment 2 David Audel CLA 2002-09-19 09:53:19 EDT
Verified.