-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b73
-
x86
-
windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2134051 | 5.0u8 | Xueming Shen | P3 | Resolved | Fixed | b01 |
J2SE Version (please include all output from java -version flag):
1.6.0-b59
Does this problem occur on J2SE 1.4.x or 5.0.x ? Yes / No (pick one)
No.
Operating System Configuration Information (be specific):
Windows XP Service Pack 2
Hibernation enabled
Virtual memory enabled
Bug Description:
java.io.File reports a length of 0 for the special
Windows files C:\hiberfil.sys and C:\pagefile.sys
Steps to Reproduce (be specific):
Create java.io.File instances for the hibernation file
"C:\hiberfil.sys" and the paging file "C:\pagefile.sys".
Check the file length using File#length().
Here's source code to reproduce the problem:
public class FileBug {
public static void main(String[] args) {
java.io.File hiberfil = new java.io.File("C:\\hiberfil.sys");
java.io.File pageFile = new java.io.File("C:\\pagefile.sys");
System.out.println("hiberfil.sys length=" + hiberfil.length());
System.out.println("pagefile.sys length=" + pageFile.length());
}
}
1.6.0-b59
Does this problem occur on J2SE 1.4.x or 5.0.x ? Yes / No (pick one)
No.
Operating System Configuration Information (be specific):
Windows XP Service Pack 2
Hibernation enabled
Virtual memory enabled
Bug Description:
java.io.File reports a length of 0 for the special
Windows files C:\hiberfil.sys and C:\pagefile.sys
Steps to Reproduce (be specific):
Create java.io.File instances for the hibernation file
"C:\hiberfil.sys" and the paging file "C:\pagefile.sys".
Check the file length using File#length().
Here's source code to reproduce the problem:
public class FileBug {
public static void main(String[] args) {
java.io.File hiberfil = new java.io.File("C:\\hiberfil.sys");
java.io.File pageFile = new java.io.File("C:\\pagefile.sys");
System.out.println("hiberfil.sys length=" + hiberfil.length());
System.out.println("pagefile.sys length=" + pageFile.length());
}
}
- backported by
-
JDK-2134051 File.length() reports a length of 0 for special files hiberfil.sys and pagefile.sys (win)
- Resolved