Bug 39533 - StatCalculator.addAll(StatCalculator calc) is incorrect
Summary: StatCalculator.addAll(StatCalculator calc) is incorrect
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.1.1
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-09 17:07 UTC by Steffen Bechtel
Modified: 2006-05-09 12:02 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Bechtel 2006-05-09 17:07:50 UTC
The method looks like this:

public void addAll(StatCalculator calc) {
	Iterator iter = values.iterator();
	while (iter.hasNext()) {
		addValue((Number) iter.next());
	}
}

but should look like that:

public void addAll(StatCalculator calc) {
	Iterator iter = calc.values.iterator();
	while (iter.hasNext()) {
		addValue((Number) iter.next());
	}
}
Comment 1 Sebb 2006-05-09 19:02:11 UTC
Thanks - well spotted.

Code has been updated in the 2.1 branch, and will be in the next nightly
Comment 2 The ASF infrastructure team 2022-09-24 20:37:37 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1718