Bug 146012 - No F_CONTENT flag on delta when reverting to old annotations
Summary: No F_CONTENT flag on delta when reverting to old annotations
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-08 10:35 EDT by Paul Fullbright CLA
Modified: 2006-08-07 07:17 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 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.