diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-11 13:23:29 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-11 13:23:29 +0700 |
commit | f996d0247c3f695cde7d220289438d6c8e89bd0c (patch) | |
tree | 5055cf722753c36606bd903d1422e4f313b17786 /weaver | |
parent | 35acb11f77a4649fc844676693e1b6a5adc7fab6 (diff) | |
download | aspectj-f996d0247c3f695cde7d220289438d6c8e89bd0c.tar.gz aspectj-f996d0247c3f695cde7d220289438d6c8e89bd0c.zip |
Fix resource leak in FileUtil
This made ModuleTests.testBuildModuleAndApplyAspectsFromAspectPath fail
because a file delete job for a module JAR failed after a previous
compile job had called FileUtil.isZipFile(File) in which the opened zip
file was never closed. A try with resources fixes that.
Maybe the corresponding test worked on Linux before, I did not try. I
just know that Linux is more forgiving about deleting open files while
on Windows they are being locked, which makes Windows the better system
to search for open file leaks.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'weaver')
0 files changed, 0 insertions, 0 deletions