Skip to main content

[jsr363-experts] Contradiction between the spec and javadoc

  • From: Martin Desruisseaux < >
  • To:
  • Subject: [jsr363-experts] Contradiction between the spec and javadoc
  • Date: Sun, 14 Dec 2014 13:15:41 +0900
  • Organization: Geomatys

Page 9 of the specification, section "Aspirations", said:

  * Support for fractional exponents, such as kg^3/2 . Fractional
    exponents sometimes appear as a partial result on the way to a final
    value.

while javadoc of Unit said "Units raised at non-integral powers are not
supported. For example, LITRE.root(2) raises an ArithmeticException".
Which one is true?

In addition, unless someone is willing to explain under which
circumstances the sentence may be true, I plan to remove the "Small or
no runtime overhead compared with an implementation not using Unit-API".
Note that I do not think that comparing to a String is appropriate,
since unless otherwise specified I think that a majority of developers
would expect a comparison with the double primitive type.

    Martin



[jsr363-experts] Contradiction between the spec and javadoc

Martin Desruisseaux 12/14/2014

[jsr363-experts] Re: Contradiction between the spec and javadoc

Werner Keil 12/14/2014

[jsr363-experts] Re: Contradiction between the spec and javadoc

Martin Desruisseaux 12/15/2014

[jsr363-experts] Re: Contradiction between the spec and javadoc

Leonardo Lima 12/16/2014

[jsr363-experts] Re: Contradiction between the spec and javadoc

Martin Desruisseaux 12/16/2014

[jsr363-experts] Re: Contradiction between the spec and javadoc

Werner Keil 12/16/2014
 
 
Close
loading
Please Confirm
Close