Re: javac confused by generics on class?

2025-06-10 Thread Éamonn McManus
This question would probably be better asked on Stack Overflow or the like. The short answer is that the compiler is following the language spec. §4.8 says: > The type of a constructor (§8.8

Deprecate Double.MIN_VALUE?

2024-12-02 Thread Éamonn McManus
At Google, we've had several issues over the years relating to Double.MIN_VALUE. People have not unreasonably supposed that Double.MIN_VALUE has the same relationship to Double.MAX_VALUE as Integer.MIN_VALUE has to Integer.MAX_VALUE. So they think that Double.MIN_VALUE is the (finite) negative numb

Re: In support of Instant.minus(Instant)

2024-05-02 Thread Éamonn McManus
I'd say too that this makes intuitive sense based on algebra. If we have: *instant1* + *duration* = *instant2* then we can subtract *duration* from both sides: *instant1 = instant2 - duration* or we can subtract *instant1* from both sides: *duration = instant2 - instant1* There's no manipulation w