Bug 146012

Summary: No F_CONTENT flag on delta when reverting to old annotations
Product: [Eclipse Project] JDT Reporter: Paul Fullbright <paul.fullbright>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.3 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Paul Fullbright CLA 2006-06-08 10:35:21 EDT
To reproduce:
 - Open java file, add annotation (do not save)
 - Java delta is received with F_CONTENT flag (indicating a change to annotations, among other possible things)
 - Close editor, do not save file
 - Java delta is received without F_CONTENT flag

When compilation units revert to original non-working copy, usually detailed information is given to show what has been reverted, including children, modifiers, etc.  We need to know if annotations have been reverted, so this flag is important for us.
Comment 1 Jerome Lanneluc CLA 2006-06-28 12:09:38 EDT
Changed JavaModelManager#discardPerWorkingCopyInfo(...) to report the delta even if there are no children changes.
Added regression test WorkingCopyOwnerTests#testDeltaDiscardPrimaryWorkingCopy4().
Released for 3.3 M1 in HEAD.
Comment 2 Frederic Fusier CLA 2006-08-07 07:17:41 EDT
Verified for 3.3 M1 using build I20060807-0010.