Bug 110168

Summary: [plan] Broadcast AST when reconciling
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: 3.2 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jerome Lanneluc CLA 2005-09-21 09:16:30 EDT
I20050920

When a client reconciles a working and request an AST at the same time, the
previously created AST is stale. Other clients need to know that this AST is
stale to throw it away.

We should add the AST to the IJavaElementDelta so that interrested parties can
get the new AST.
Comment 1 Jerome Lanneluc CLA 2005-10-06 11:13:15 EDT
Added API IJavaElementDelta#F_AST_AFFECTED and
IJavaElementDelta#getCompilationUnitAST().
The Java element delta's flag is set to F_AST_AFFECTED when a reconcile
operation affects the AST created in the last reconcile operation. In this case
the AST should be re-acquired using getCompilationUnitAST().

Added test ReconcilerTests#testBroadcastAST1/4.
Comment 2 Olivier Thomann CLA 2005-10-28 11:40:21 EDT
Verified for 3.2 M3 using build I20051025-0800+JDT/Core v_618a