HelenBlack / lambdaj

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

sum() should support BigDecimal #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

right now it's throwing:

Exception in thread "main" java.lang.RuntimeException: unable to aggregate
0.0 and 1
    at ch.lambdaj.function.aggregate.Sum.aggregate(Sum.java:27)
    at ch.lambdaj.function.aggregate.Sum.aggregate(Sum.java:11)
    at
ch.lambdaj.function.aggregate.PairAggregator.aggregate(PairAggregator.java:22)
    at ch.lambdaj.Lambda.aggregate(Lambda.java:373)
    at ch.lambdaj.Lambda.aggregate(Lambda.java:388)
    at ch.lambdaj.Lambda.sum(Lambda.java:454)

As I can see only Integer, Long, Float and Double are supported. 

Original issue reported on code.google.com by kretesen...@gmail.com on 3 Nov 2009 at 9:56

GoogleCodeExporter commented 8 years ago

Original comment by mario.fu...@gmail.com on 3 Nov 2009 at 3:32

GoogleCodeExporter commented 8 years ago
Implemented starting from lambdaj 2.1

Original comment by mario.fu...@gmail.com on 4 Nov 2009 at 10:37