Bug 50708 - Classpath jar order in NewDriver not alphabetically
Summary: Classpath jar order in NewDriver not alphabetically
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.4
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-02 11:07 UTC by jens_0
Modified: 2011-02-02 11:48 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jens_0 2011-02-02 11:07:51 UTC
Hello,

my extension whose jar I add to the lib\ext directory overwrites an existing JMeter class. This works well in most cases, as the name of my extension begins with an "A" and comes first in the classpath before the other JMeter lib\ext jars.

Now I had the case of one system where this was not working and I checked the classpath and indeed, the order was not alphabetically.
NewDriver uses File.listFiles which does not guarantee a specific order!

Therefore my request would be to add the line 
Arrays.sort(libJars); 
to myDriver.java line 100.
Comment 1 Sebb 2011-02-02 11:48:41 UTC
Good idea:

URL: http://svn.apache.org/viewvc?rev=1066521&view=rev
Log:
Bug 50708 - Classpath jar order in NewDriver not alphabetically

Modified:
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java
   jakarta/jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:37:46 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2464