Bug 39533 - StatCalculator.addAll(StatCalculator calc) is incorrect
StatCalculator.addAll(StatCalculator calc) is incorrect
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.1.1
All All
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
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