Bug 572148 - refreshLocal updates modification stamp where it should not
Summary: refreshLocal updates modification stamp where it should not
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.19   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-21 13:35 EDT by Vladimir Piskarev CLA
Modified: 2021-03-21 13:35 EDT (History)
0 users

See Also:


Attachments
Test project (2.36 KB, application/zip)
2021-03-21 13:35 EDT, Vladimir Piskarev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Piskarev CLA 2021-03-21 13:35:03 EDT
Created attachment 285900 [details]
Test project

Assuming that file currently exists in the workspace, the following call to #refreshLocal updates the modification stamp of the file:

        IFolder folder = file.getParent().getFolder(new Path(file.getName()));
        folder.refreshLocal(IResource.DEPTH_ZERO, null);

Please find a failing unit test attached.