Bug 110168 - [plan] Broadcast AST when reconciling
Summary: [plan] Broadcast AST when reconciling
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.2 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-21 09:16 EDT by Jerome Lanneluc CLA
Modified: 2005-10-28 11:40 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 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