]> source.dussan.org Git - aspectj.git/commit
Improve 2 tests do delete temporary files
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 9 Apr 2021 07:05:00 +0000 (14:05 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 9 Apr 2021 07:05:00 +0000 (14:05 +0700)
commit060bf4c3c66841237a5acafbbe211e360c9d920b
tree021db1c7f698a3547fdf5d03855f16cf46c764d0
parentb6779de5d76af4cf89de19943324b592bb067c2d
Improve 2 tests do delete temporary files

There were some problems in file handling: One file in was not deleted
in case an exception was thrown during the test. Another case was a
JarFile which was not closed before deletion, which might work on Linux,
but not on Windows where the open file is still locked after usage.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
taskdefs/src/test/java/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java
tests/bugs/serialVersionUID/Util.java