Bug 30917 - Classfinder returns duplicate classnames
Classfinder returns duplicate classnames
Product: JMeter
Classification: Unclassified
Component: Main
Nightly (Please specify date)
PC All
: P3 normal (vote)
: ---
Assigned To: JMeter issues mailing list
Depends on:
  Show dependency tree
Reported: 2004-08-28 16:06 UTC by Aaron Bajek
Modified: 2005-03-20 17:06 UTC (History)
0 users

Patch from http://www.mail-archive.com/jmeter-dev%40jakarta.apache.org/msg07946.html (3.56 KB, patch)
2004-09-16 15:12 UTC, Sebb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Bajek 2004-08-28 16:06:18 UTC
org.apache.jorphan.reflect.ClassFinder will return the same classname multiple 
times if that class is located in multiple places in the search path.  

To reproduce, make a copy of ApacheJMeter_core.jar in lib/ext, restart, and 
then add anything to the testplan.  Instead of a single item being added, two 
identical items will be added.

To fix this the list of found classes should be replaced with a Set.  This can 
be kept internal to the class and does not have to affect the public interface.

I verified this problem still exists in cvs as of 8/28.
Comment 2 Sebb 2004-09-18 20:34:18 UTC
Applied to CVS branch 2.0