Bug 47377 - [Patch] Make ClassFinder more robust and close zipfile resources
[Patch] Make ClassFinder more robust and close zipfile resources
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.3.3
All All
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2009-06-16 12:41 UTC by benoit.wiart
Modified: 2009-06-16 15:12 UTC (History)
0 users



Attachments
patch (1.49 KB, patch)
2009-06-16 12:42 UTC, benoit.wiart
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description benoit.wiart 2009-06-16 12:41:34 UTC
1- ClassFinder#findClassesInOnePath(String, Set) does not close the opened zipfile 
2- if a corrupted jar (= a file with the jar extension which is not a jar) is in the search path, jmeter will start but will be unusable
With this patch, the method log the error but check the other jar files

Benoit Wiart
Ubik Ingénierie
www.ubik-ingenierie.com
Comment 1 benoit.wiart 2009-06-16 12:42:50 UTC
Created attachment 23819 [details]
patch
Comment 2 Sebb 2009-06-16 15:12:56 UTC
Thanks for reporting this and the patch, which has been applied to SVN:

URL: http://svn.apache.org/viewvc?rev=785427&view=rev
Log:
Bug 47377 - Make ClassFinder more robust and close zipfile resources