Bug 39533

Summary: StatCalculator.addAll(StatCalculator calc) is incorrect
Product: JMeter - Now in Github Reporter: Steffen Bechtel <steffen.bechtel>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.1.1   
Target Milestone: ---   
Hardware: All   
OS: All   

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