Community
Participate
Working Groups
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.
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.
Verified for 3.2 M3 using build I20051025-0800+JDT/Core v_618a