Bug 52925 - FileReader deletes files which cannot read
Summary: FileReader deletes files which cannot read
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-24 07:48 EST by kahmann CLA
Modified: 2004-05-13 07:57 EDT (History)
0 users

See Also:


Attachments
The attached programm was used to detect the error (1.01 KB, text/plain)
2004-02-24 07:52 EST, kahmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description kahmann CLA 2004-02-24 07:48:54 EST
Hello,

I start eclipse from Windows XP and the ASCII-file is in a directory in a unix 
filesystem. I use pathmapping to use the file from windows.

The problem is the following:

When i use a FileReader in eclipse to read the ASCII-File, the file is deleted 
when i have no rights under unix to read the file. When i export my java-
programm to unix, compile it there with a standard sun version from jdt, i can
start the programm an i get an exception in the normal way and the file is not 
deleted.

Greetings

Kahmann
Comment 1 kahmann CLA 2004-02-24 07:52:33 EST
Created attachment 8119 [details]
The attached programm was used to detect the error

You have to choose another path and file to test the programm
Comment 2 Philipe Mulet CLA 2004-02-24 08:06:33 EST
Which VM are you using when launching the program in Eclipse ?
Side question: does the problem also occurs when exporting the Eclipse 
generated .class file and running it outside Eclipse ?
Comment 3 Philipe Mulet CLA 2004-05-13 07:57:50 EDT
This is a pure runtime problem related to the VM you are using. 
Not a bug in Eclipse per se.