Use Advanced Search to search the entire archive.
Re: Remove "generic" multiply/divide operations from Quantity
- From: Martin Desruisseaux <
>
- To:
- Subject: Re: Remove "generic" multiply/divide operations from Quantity
- Date: Sat, 18 Oct 2014 15:26:07 +0900
- Organization: Geomatys
Le 17/10/14 05:11, Werner Keil a écrit :
>
About Martin's question, I can only give one example, but there are at
>
least 50-70 cases in UCUM alone where asType() broke in JDK 8u20 and
>
above.
>
POUND_FORCE was
>
Unit<Force> POUND_FORCE =
>
addUnit(POUND.multiply(ACCELLERATION_OF_FREEFALL).asType(Force.class));
>
but had to become
>
Unit<Force> POUND_FORCE = addUnit(new ProductUnit<Force>(
>
POUND.multiply(ACCELLERATION_OF_FREEFALL)));
>
>
otherwise the SE port did not compile there any more
Thanks a lot for this code example. Now it help to identify better what
the issue may be. Was the problem at compile-time or at the runtime? If
compile-time, do you remember what was the compiler error message?
Martin