java.lang.Float fields

1999-02-08 Thread John Keiser
There are three public fields in java.lang.Float that I don't know what they do exactly. Their names are WIDEFP_SIGNIFICAND_BITS, WIDEFP_MIN_EXPONENT, and WIDEFP_MAX_EXPONENT. There doesn't appear to be any explanation in the 1.2 JavaDocs either (they aren't even listed). Could someone who know

Re: java.lang.Float fields

1999-02-08 Thread Brian Jones
"John Keiser" <[EMAIL PROTECTED]> writes: > Finally, in both Float and Double, the toString() method needs a little > elaboration. It would be nice to know what format the resulting String will > be in. Will it be in exponential notation? Will it ever be in regular > notation, and under what c

RE: java.lang.Float fields

1999-02-08 Thread John Keiser
> Sent: Monday, February 08, 1999 11:54 AM > To: John Keiser > Cc: Classpath > Subject: Re: java.lang.Float fields > > > "John Keiser" <[EMAIL PROTECTED]> writes: > > > Finally, in both Float and Double, the toString() method needs a little > &g

Re: java.lang.Float fields

1999-02-08 Thread Brian Jones
lto:[EMAIL PROTECTED]]On Behalf Of > > Brian Jones > > Sent: Monday, February 08, 1999 11:54 AM > > To: John Keiser > > Cc: Classpath > > Subject: Re: java.lang.Float fields > > > > > > "John Keiser" <[EMAIL PROTECTED]> writes: &g

RE: java.lang.Float fields

1999-02-08 Thread John Keiser
One more thing I need from the Float/Double person[s]: where (and how) can spaces be in the input string, and what happens when an unrecognized character is hit? Is a NumberFormatException thrown, or is the rest of the string simply ignored? (I have wondered this myself.) Actually this goe

Re: java.lang.Float fields

1999-02-08 Thread Paul Fisher
"John Keiser" <[EMAIL PROTECTED]> writes: > One more thing I need from the Float/Double person[s]: where > (and how) can spaces be in the input string, and what happens when > an unrecognized character is hit? Is a NumberFormatException > thrown, or is the rest of the string simply ignored?

Re: java.lang.Float fields

1999-02-08 Thread John Keiser
> From: Paul Fisher > > "John Keiser" <[EMAIL PROTECTED]> writes: > > > And I'm still missing documentation for those WIDEFP_* fields in > > Float. > > They're explained in the strictfp documentation. > Aha! I went searching the bowels of the change docs and found out why I couldn't find those f

Re: java.lang.Float fields

1999-02-08 Thread Paul Fisher
"John Keiser" <[EMAIL PROTECTED]> writes: > Also, I have a question about Float and Number, specifically the > methods byteValue() and shortValue(). They are implemented in > Number, calling intValue() and casting down. Is there a reason for > this? Yes. byteValue() and shortValue() were adde

Re: java.lang.Float fields

1999-02-08 Thread Brian Jones
Paul Fisher <[EMAIL PROTECTED]> writes: > "John Keiser" <[EMAIL PROTECTED]> writes: > > > Also, I have a question about Float and Number, specifically the > > methods byteValue() and shortValue(). They are implemented in > > Number, calling intValue() and casting down. Is there a reason for >

RE: java.lang.Float fields

1999-02-08 Thread John Keiser
> From: Brian Jones > > Paul Fisher <[EMAIL PROTECTED]> writes: > > > "John Keiser" <[EMAIL PROTECTED]> writes: > > > > > Also, I have a question about Float and Number, specifically the > > > methods byteValue() and shortValue(). They are implemented in > > > Number, calling intValue() and casti

Re: java.lang.Float fields

1999-02-08 Thread Aaron M. Renn
> One more thing I need from the Float/Double person[s]: where (and how) >can spaces be in the input string, and what happens when an unrecognized >character is hit? Is a NumberFormatException thrown, or is the rest of the >string simply ignored? (I have wondered this myself.) Actually this

Re: java.lang.Float fields

1999-02-08 Thread Paul Fisher
"Aaron M. Renn" <[EMAIL PROTECTED]> writes: > If you put them in the method decl, then the compiler will force any > callers to catch them or declare that they throw the method instead > of allowing them to propagate upward silently as normal. This is not the case. All RuntimeExceptions declare

RE: java.lang.Float fields

1999-02-08 Thread John Keiser
> From: Aaron M. Renn [mailto:[EMAIL PROTECTED]] > > >I declared an @exception clause, but I removed the throws > >NullPointerException part from all of them. > > I recommend against declaring that a method throws exceptions from > java.lang. (Javadoc'ing them is probably good though, but perhaps

Re: java.lang.Float fields

1999-02-08 Thread Paul Fisher
"John Keiser" <[EMAIL PROTECTED]> writes: > I agree completely. The decision is completely out of our hands, > though; we need to throw exactly the same exceptions as Java 2, so > that stuff compiled against us will work as expected on Sun, and > vice versa. This is not the case. See section 8

Re: java.lang.Float fields

1999-02-08 Thread Stuart Ballard
"Aaron M. Renn" wrote: > > I recommend against declaring that a method throws exceptions from > java.lang. (Javadoc'ing them is probably good though, but perhaps things > like NullPointerException are a bit overkill). If you put them in the > method decl, then the compiler will force any caller

RE: java.lang.Float fields

1999-02-08 Thread Daniel Rall
> If you put them in the > method decl, then the compiler will force any callers to catch them or > declare that they throw the method instead of allowing them to propagate > upward silently as normal. Is this also true for RuntimeExceptions? I could be mistaken, but from what Paul was saying it

Re: java.lang.Float fields

1999-02-08 Thread Aaron M. Renn
>> If you put them in the method decl, then the compiler will force any >> callers to catch them or declare that they throw the method instead >> of allowing them to propagate upward silently as normal. > >This is not the case. All RuntimeExceptions declared in the throws >clause are ignored. Hm

Commenting styles was Re: java.lang.Float fields

1999-02-08 Thread Stuart Ballard
Brian Jones wrote: > > Paul Fisher <[EMAIL PROTECTED]> writes: > > > Please change your commenting style to conform to GNU standards. The > > double stars on each line are terribly ugly. > > single '*' for everything but the first part of the comment if it is > to be included in javadoc (as in

Style Issues (was re: java.lang.Float fields)

1999-02-08 Thread John Keiser
> From: [EMAIL PROTECTED] > > "John Keiser" <[EMAIL PROTECTED]> writes: > > > I agree completely. The decision is completely out of our hands, > > though; we need to throw exactly the same exceptions as Java 2, so > > that stuff compiled against us will work as expected on Sun, and > > vice versa