bobobear / lambdaj

Automatically exported from code.google.com/p/lambdaj
Apache License 2.0
0 stars 0 forks source link

Cannot sumFrom BigDecimal in an empty list #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The following unit test:
public class SumFromTest {
    public class A {
        public BigDecimal getBigDecimal() {
            return BigDecimal.ZERO;
        }
    }
    @Test
    public void showFailure() {
        List<A> list = new ArrayList<A>();
        sumFrom(list, A.class).getBigDecimal();
    }
}

What is the expected output? What do you see instead?

Should successfully handle an empty list.

What version of the product are you using? On what operating system?

2.3.1 - JRockit-4.0.0-1.6.0 - Windows

Please provide any additional information below.

Original issue reported on code.google.com by matt.rea...@gmail.com on 24 Nov 2010 at 9:26

GoogleCodeExporter commented 9 years ago
Fixed in release 2.3.2

Original comment by mario.fu...@gmail.com on 17 Dec 2010 at 10:49