Bug 577785 - File content magically appears for newly created file
Summary: File content magically appears for newly created file
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.19   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-14 03:59 EST by David Balažic CLA
Modified: 2021-12-14 03:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Balažic CLA 2021-12-14 03:59:13 EST
Version:
Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)

Version: 2021-03 (4.19.0)
Build id: 20210312-0638



What happened:
 - in a general/project, link into it a filesystem file, named foo.properties
 - drag that file in Eclipse with CTRL to make a copy into the same (root) folder of the same project, name it foo.copy.properties
 - open and do some editing in the copy
 - realize it is not a copy but actually a link to the same file, so undo all changes (ctrl-z)
 - delete foo.copy.properties
 - create a new file in the same folder, name it foo.copy.properties
 - open it

Result:
instead of getting an empty editor, it shows the contents of before (like in the original foo.properties file)

Also:
 - create a new file, name it wtf.properties
 - open it to check it is empty
 - close the editor
 - rename the file to foo.copy.properties
 - open it

Result:
The content of foo.properties appear again, instead of empty