[
https://issues.apache.org/jira/browse/SLING-10175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292666#comment-17292666
]
Carsten Ziegeler commented on SLING-10175:
------------------------------------------
The temp files created by those methods are not reusable, meaning if the method
is called twice with the same URL, two temp files might be created.
So I think the easiest solution is to just remove them on exit with:
tmp.deleteOnExit();
[~kpauls] WDYT?
> Clean up temporary files from IOUtils
> -------------------------------------
>
> Key: SLING-10175
> URL: https://issues.apache.org/jira/browse/SLING-10175
> Project: Sling
> Issue Type: Improvement
> Components: Feature Model
> Affects Versions: Feature Model 1.2.20
> Reporter: Carsten Ziegeler
> Priority: Major
> Fix For: Feature Model 1.2.22
>
>
> IOUtils.getJarFileFromURL and IOUtils.getFileFromURL might create temp files
> which are never cleaned up.
> THis is for example visible by running the tests.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)