-
Bug
-
Resolution: Fixed
-
P4
-
5.0u30
-
b93
-
x86
-
windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8018860 | 7u45 | Robert Mckenna | P4 | Closed | Fixed | b01 |
JDK-8016339 | 7u40 | Robert Mckenna | P4 | Closed | Fixed | b30 |
A CU reported that isHidden() does not return true for pagefile.sys and hiberfil.sys
and true must be returned in both cases.
CONFIGURATION:
JDK : 5u30/6u24/7(b137)
OS : WindowsXP(SP3, Japanese, 32bits)
REPRODUCE:
1. Compile the attached FileAttr.java
2. Invoke "java FileAttr c:\pagefile.sys c:\hiberfil.sys"
[EXPECTED]
F:\export2\licensees>java -showversion FileAttr c:\pagefile.sys c:\hiberfil.sys
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b137)
Java HotSpot(TM) Client VM (build 21.0-b07, mixed mode)
c:\pagefile.sys exists file hidden
c:\hiberfil.sys exists file hidden
[ACTUAL]
F:\export2\licensees>java -showversion FileAttr c:\pagefile.sys c:\hiberfil.sys
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b137)
Java HotSpot(TM) Client VM (build 21.0-b07, mixed mode)
c:\pagefile.sys exists file
c:\hiberfil.sys exists file
NOTE:
The attributes of both files are hidden file.
C:\>attrib pagefile.sys
A SH C:\pagefile.sys
C:\>attrib hiberfil.sys
A SH C:\hiberfil.sys
The CU sent more details and suggested fix, please see the comment section.
and true must be returned in both cases.
CONFIGURATION:
JDK : 5u30/6u24/7(b137)
OS : WindowsXP(SP3, Japanese, 32bits)
REPRODUCE:
1. Compile the attached FileAttr.java
2. Invoke "java FileAttr c:\pagefile.sys c:\hiberfil.sys"
[EXPECTED]
F:\export2\licensees>java -showversion FileAttr c:\pagefile.sys c:\hiberfil.sys
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b137)
Java HotSpot(TM) Client VM (build 21.0-b07, mixed mode)
c:\pagefile.sys exists file hidden
c:\hiberfil.sys exists file hidden
[ACTUAL]
F:\export2\licensees>java -showversion FileAttr c:\pagefile.sys c:\hiberfil.sys
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b137)
Java HotSpot(TM) Client VM (build 21.0-b07, mixed mode)
c:\pagefile.sys exists file
c:\hiberfil.sys exists file
NOTE:
The attributes of both files are hidden file.
C:\>attrib pagefile.sys
A SH C:\pagefile.sys
C:\>attrib hiberfil.sys
A SH C:\hiberfil.sys
The CU sent more details and suggested fix, please see the comment section.
- backported by
-
JDK-8016339 File.isHidden() should return true for pagefile.sys and hiberfil.sys
- Closed
-
JDK-8018860 File.isHidden() should return true for pagefile.sys and hiberfil.sys
- Closed
- relates to
-
JDK-8016063 getFinalAttributes should use FindClose
- Closed