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.