Bug 4715154

Ulf Zibis Ulf.Zibis at gmx.de
Mon Jun 27 16:03:00 UTC 2011


+1

-Ulf


Am 27.06.2011 17:57, schrieb Sean Mullan:
> Hey Alan,
>
> Would it be a good idea if we add this Windows limitation to the NIO javadocs somewhere, say in 
> the FileChannel class? I spent a lot of time chasing this down until I finally figured out it was 
> a known issue.
>
> --Sean
>
> On 6/27/11 9:19 AM, Alan Bateman wrote:
>> Sean Mullan wrote:
>>> Several jigsaw unit tests are failing on Windows because of bug 4715154 [1]
>>> which was closed a long time ago as "Will Not Fix". Does anyone have any
>>> suggestions as the best way to workaround this, short of replacing the call to
>>> FileChannel.map with FileChannel.read? Are there any plans to fix this in the
>>> future?
>>>
>>> Thanks,
>>> Sean
>>>
>>> [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4715154
>> This is a limitation of Windows and I'm not aware of any way to create a
>> file-mapping that would allow the file be deleted while the mapping exists (if
>> there is a way then it would be great to know about it). In a couple of tests
>> we've had to do an ugly System.gc() + short sleep at the end of the test to
>> trigger the unmap.
>>
>> -Alan
>



More information about the core-libs-dev mailing list