Skip to main content

Re: Email proposal to the core-libs-dev@openjdk.java.net

  • From: Martin Desruisseaux < >
  • To:
  • Subject: Re: Email proposal to the
  • Date: Mon, 20 Oct 2014 11:58:03 +0900
  • Organization: Geomatys

Le 20/10/14 07:28, Werner Keil a écrit :
> At some point, maybe when we present an EDR, or at least by the time
> EC first gets to vote, it would be good if somebody at Oracle beyond
> Don had a look at it.
If you really explain them how it breaks type safety, they can only
reject this proposal.

> It occurs under SE 8u20, when a method takes a Unit<?> argument and
> the result of Unit.multiply(Unit<?).asType() is passed to that method.
>
> E.g. len.multiply(len).asType(Area.class)
> Which is perfectly legitimate, but compilation already fails with:
>   incompatible types: inference variable T has incompatible bounds
>   equality constraints: javax.measure.quantity.Area
>   upper bounds: javax.measure.Quantity<capture#1 of 
> ?>,javax.measure.Quantity<T>
>
This is a separated problem we may need to look at, but
UNITSOFMEASUREMENT-62 is not an acceptable fix. We need to look for
another way.

    Martin



Email proposal to the

Martin Desruisseaux 10/19/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/19/2014

Re: Email proposal to the

Martin Desruisseaux 10/20/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/20/2014

Re: Email proposal to the

Werner Keil 10/20/2014

Re: Email proposal to the

Werner Keil 10/19/2014

Re: Email proposal to the

Leonardo Lima 10/19/2014

Re: Email proposal to the

Werner Keil 10/19/2014

Re: Email proposal to the

Martin Desruisseaux 10/20/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/19/2014

Re: Email proposal to the

Werner Keil 10/19/2014

Re: Email proposal to the

Leonardo Lima 10/19/2014

Re: Email proposal to the

Werner Keil 10/20/2014

Re: Email proposal to the

Werner Keil 10/20/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/20/2014

Re: Email proposal to the

Werner Keil 10/20/2014

Re: Email proposal to the

Martin Desruisseaux 10/20/2014

Re: Email proposal to the

Werner Keil 10/20/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/20/2014
 
 
Close
loading
Please Confirm
Close