JDK-6561063 : TEST_BUG: closed/runtime/6244515/Truncate.java does not work on Windows
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-05-23
  • Updated: 2012-10-08
  • Resolved: 2007-06-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u4Fixed 7Fixed hs10Fixed
Failure example:

The test hardcodes /tmp/z which does not exist on Windows.

EVALUATION The test fails because the way the test case creates the temporary file. However, even though that is fixed, the test will still fail on Windows since Windows does not allow the file to be truncated when it still has user-mapped region open. Having said that, I believe the correct way to fix this bug is to ignore the test specifically on Windows platform.