mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
446c09dd33
The File.length() method was returning a signed 32-bit value on 32-bit Windows systems. This was causing an integer overflow on file sizes greater than 2 GB. This appears to be caused by the way Windows handles the STAT() function. This patch checks whether the current platform is Windows then uses the Windows API to get the correct file size and return it as a jlong. |
||
---|---|---|
.. | ||
avian | ||
java | ||
sun | ||
java-io.cpp | ||
java-lang.cpp | ||
java-net.cpp | ||
java-nio.cpp | ||
java-util-zip.cpp | ||
java-util.cpp | ||
jni-util.h |