Changes to RandomAccessFile in jdk9

Alan Bateman Alan.Bateman at oracle.com
Sun Apr 22 19:31:59 UTC 2018


On 22/04/2018 20:13, Enrico Olivelli wrote:
> :
>
> Thank you Alan,
> Do you think we can hope for a fix in Java 10.0.01 ?
>
I have an initial patch that restores RandomAccessFile.setLength It also 
fixes FileChannel.map so that it only attempts to allocate the disk 
space when region to map overlaps with a hole in a sparse file.

10.0.1 was released last week. 10.0.2 is planned for July 2018. Once the 
changes are in jdk/jdk (for JDK 11) then we can discuss whether it's 
worth trying to get the changes into jdk-updates/jdk10u.

-Alan




More information about the nio-dev mailing list