RFR Re: [PATCH] 8178117: Add public state constructors for Int/Long/DoubleSummaryStatistics

joe darcy joe.darcy at oracle.com
Thu Nov 2 17:40:12 UTC 2017

On 11/2/2017 9:58 AM, Paul Sandoz wrote:
>> On 31 Oct 2017, at 11:24, Brian Goetz <brian.goetz at Oracle.COM> wrote:
>> While I agree that the overflow-detecting constraint on min/max in the early version was too aggressive, you could reasonably choose to enforce the constraint that if count == 0, then so should sum, min, and max.
> I’m on the fence on this one. Joe is going to follow up with another issue for DoubleSummaryStatistics adjusting to a varargs constructor and and may consider doing this at the same time.

Added a comment to record that possibility to JDK-8190517: "Allow 
DoubleSummaryStatistics constructor to accept additional state."


More information about the core-libs-dev mailing list