public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/21221] New: File.isHidden() method always returns 'true' in windows.
@ 2005-04-25 17:38 mnefedov at rogers dot com
2005-04-25 17:54 ` [Bug libgcj/21221] [Win32] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: mnefedov at rogers dot com @ 2005-04-25 17:38 UTC (permalink / raw)
To: java-prs
File.isHidden() method always returns 'true' in windows.
Here is a simple code:
----
import java.io.*;
public class canRead {
public static void main( String [] args ) {
File file = new File( args[0] );
System.out.println( args[0] + ":"
+ " canRead() = " + file.canRead()
+ " isHidden() = " + file.isHidden()
);
}
}
---
build and run in windows, run: canRead canRead.exe
isHidden() returns 'true'.
--
Summary: File.isHidden() method always returns 'true' in windows.
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mnefedov at rogers dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21221
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libgcj/21221] [Win32] File.isHidden() method always returns 'true' in windows.
2005-04-25 17:38 [Bug java/21221] New: File.isHidden() method always returns 'true' in windows mnefedov at rogers dot com
@ 2005-04-25 17:54 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-25 17:54 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-25 17:53 -------
Hmm, we should have got an exception or an assert:
JvAssert (query == DIRECTORY || query == ISFILE);
oh, well.
The problem can be seen in natFileWin32.cc in that _stat does not understant ISHIDDEN at all.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|java |libgcj
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-25 17:53:46
date| |
Summary|File.isHidden() method |[Win32] File.isHidden()
|always returns 'true' in |method always returns 'true'
|windows. |in windows.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21221
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-25 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-25 17:38 [Bug java/21221] New: File.isHidden() method always returns 'true' in windows mnefedov at rogers dot com
2005-04-25 17:54 ` [Bug libgcj/21221] [Win32] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).