Use Advanced Search to search the entire archive.
Re: Email proposal to the core-libs-dev@openjdk.java.net
- From: Werner Keil <
>
- To: "
" <
>
- Subject: Re: Email proposal to the
- Date: Tue, 21 Oct 2014 11:21:35 +0200
No, as mentioned, there is Little to expect immediately by changes to the
JDK.
Reified types could help at runtime, something we must work around somehow,
especially when it comes to formatting or parsing.
https://github.com/unitsofmeasurement/uom-demos/blob/master/console/ri/src/main/java/tec/uom/demo/ThePerfectStorm.java
is a good example. While UnitDemo based on Jean-Marie's sample code does
proper formatting in most cases (actually I think the multiplication at
times reverts the arguments which is mathematically correct, but one might
prefer to see "a*b" instead of "b*a") and "km/h" multiplied by HOUR turns
into "km" again, above example should display "h" but it does something
like "km/km/h".
I have not adjusted to the new asType() signature here, but the formatting
issue is unrelated.
Maybe those who wish to improve RI or SE port may have a look at it. I'll
create a JIRA ticket soon, too.
Thanks,
Werner
On Tue, Oct 21, 2014 at 10:45 AM, Martin Desruisseaux <
>
wrote:
>
Hello Werner
>
>
Le 21/10/14 17:39, Werner Keil a écrit :
>
>
I am not sure, if you still want to proceed with that mail to the
>
OpenJDK Team, or is it more a clarification for Otavio?
>
>
It is a clarification for Otavio, unless someone would like a confirmation
>
of the "*parameterized types shall not lie*" principle.
>
>
Martin
>
>