[ 
https://issues.apache.org/jira/browse/PDFBOX-4867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129003#comment-17129003
 ] 

Alfred commented on PDFBOX-4867:
--------------------------------

Looks like the RandomAccessReadMemoryMappedFile gets closed properly, but the 
lock is not released.

I can see the fileChannel.close(); line gets executed during the test, but even 
after that, the file cannot be deleted.
I can deleted manually, from explorer, but only after the JVM ends, but not 
while the test JVM is still alive.

Don't know how to fix this, can it be a JVM bug?

> Two failing tests in CCITTFactoryTest
> -------------------------------------
>
>                 Key: PDFBOX-4867
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4867
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Alfred
>            Priority: Minor
>
> The tests that fail are: 
>    CCITTFactoryTest.testCreateFromFileLock
>    CCITTFactoryTest.testCreateFromFileLock
> Both are testing that the source TIFF file is not locked by 
> CCITTFactory#createFromFile
> They started failing when RandomAccessReadMemoryMappedFile was introduced, 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to