News for hackers. Stuff that matters.
Re:Java autoboxing/unboxing madness (2007) by aeonsky on Thursday September 03, 2015 @10:40AM (#10165178)
JLS: https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.htm...

Otherwise, if the second and third operands have types that are convertible (§5.1.8) to numeric types, then there are several cases:

... binary numeric promotion (§5.6.2) is applied to the operand types, and the type of the conditional expression is the promoted type of the second and third operands.

... If either operand is of type double, the other is converted to double.

Re:Java autoboxing/unboxing madness (2007) by gefh on Thursday September 03, 2015 @02:50PM (#10166811)
Right. This is only tangentially to do with autoboxing, the same would happen for (true ? 1L : 0.0).