This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 19452 - when files are hidden , changes can't be saved
Summary: when files are hidden , changes can't be saved
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 3.x
Hardware: PC All
: P4 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-15 12:40 UTC by Rainer Schmeil
Modified: 2008-12-22 19:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans log file with error message (1.91 KB, text/plain)
2002-01-15 17:17 UTC, Rainer Schmeil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Schmeil 2002-01-15 12:40:19 UTC
I'm currently working with JDK 1.4 on Windows XP. If I alter a hidden source
file and try to save the changes, I get a FileNotFoundException(Access denied).
I'm owner of Netbeans task. I have full access to all files I'm working on.
If I make the files visible, everything works fine.
Finally I tried with JDK 1.3.1, but the error was still occurring.
Comment 1 _ ttran 2002-01-15 12:53:39 UTC
how did you _hide_ the source file?  And please attach the exception
you find in the ide.log file here. 
Comment 2 rmatous 2002-01-15 13:38:41 UTC
Also please speciffy what does it mean to alter hidden files. Please
add steps how to reproduce.
Comment 3 Rainer Schmeil 2002-01-15 17:17:50 UTC
Created attachment 4182 [details]
netbeans log file with error message
Comment 4 Rainer Schmeil 2002-01-15 17:29:07 UTC
Altering means adding/deleting any code to the source file (e.g. 
comments, methods, classes).
Step to reproduce:
1. create a new class or open an old .java file in netbeans IDE
2. right click on the .java file in Windows Explorer and choose 
properties
3. change the files properties to hidden (press OK :-) )
4. add some code to the class in netbeans IDE
5. try to save the changes from 4.
6. the error should occur
Comment 5 rmatous 2002-01-16 13:27:17 UTC
Previously I considerd hidden as term that we use in connection with
MultiFileSystem implementation. But now everything is clear. So,
according to stacktrace and according my additional investigation is
the problem in JDK in WIN platform:
1/ File.isHidden returns false (also if file is really hidden)
2/ FileNotFoundException is fired for FileOutputStream.write if file
is hidden

So I fired two JDK bugs: 4624383, 4624413. But definitely P3 priority
is inappropriate. Then priority decreased to P5.
Comment 6 rmatous 2002-01-17 12:50:23 UTC
I think that because this bug won`t be fixed in Netbeans then will be
resolved as WONTFIX.
Comment 7 Quality Engineering 2003-07-01 15:56:19 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 8 Quality Engineering 2003-07-01 16:31:34 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.