Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25615
| Date | 2011-02-07 20:10 -0500 |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JLS 3/e -- Lots Of Errors |
| References | (3 earlier) <iil265$ob4$2@lust.ihug.co.nz> <iil5i6$10m$2@news.eternal-september.org> <iini4a$75r$3@lust.ihug.co.nz> <4d4f5275$0$23761$14726298@news.sunsite.dk> <4d4f66a1$1@news.x-privat.org> |
| Message-ID | <4d5097e5$0$23764$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
On 06-02-2011 22:27, Ken Wesson wrote: > On Sun, 06 Feb 2011 21:01:32 -0500, Arne Vajhøj wrote: > >> On 06-02-2011 20:32, Lawrence D'Oliveiro wrote: >>> In message<iil5i6$10m$2@news.eternal-september.org>, Joshua Cranmer >>> wrote: >>>> On 02/05/2011 09:48 PM, Lawrence D'Oliveiro wrote: >>>>> In message<iijnm4$d5j$1@news.albasani.net>, Lew wrote: >>>>>> On 02/05/2011 07:32 AM, Lawrence D'Oliveiro wrote: >>>>>>> * Section 5.1.8, page 88: no mention of what happens when you unbox >>>>>>> a NaN (the previous page said only that the boxed object had >>>>>>> isNaN() evaluating to true, no mention of what floatValue() or >>>>>>> doubleValue() might return). >>>>>> >>>>>> Nor is such a mention required, therefore its omission is not an >>>>>> error. However, it's pretty clear that if 'isNan()' is true, then >>>>>> 'doubleValue()' must return 'Double.NaN'. >>>>> >>>>> No it is not. The spec carefully refrains from mentioning what >>>>> floatValue() and doubleValue() return. >>>> >>>> Why should it mention it? That is what the documentation on the >>>> respective classes in the Java Standard API is for. >>> >>> If that’s the case, there should be a reference to where it’s properly >>> defined. >> >> Why? >> >> People that read the JLS should have read the Java API > > What, the whole thing? It's tens of megabytes of text. The Encyclopedia > Brittanica is a shorter English-language work. > > The commonly encountered classes in java.lang and java.util and java.io, > yes, though. String, System, the boxed primitive classes, StringBuilder, > Iterator, Set, Map, List, HashFoo, ArrayList, InputStream, OutputStream, > Reader, Writer, and File; and Exception; at the very least. Having read the most common part and learned to lookup the less common parts very quickly. That accumulates knowledge over time. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Re: JLS 3/e -- Lots Of Errors Arne Vajhøj <arne@vajhoej.dk> - 2011-02-06 21:01 -0500
Re: JLS 3/e -- Lots Of Errors Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-07 19:11 +1300
Re: JLS 3/e -- Lots Of Errors Arne Vajhøj <arne@vajhoej.dk> - 2011-02-07 20:10 -0500
Re: JLS 3/e -- Lots Of Errors Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-07 15:48 +1300
Re: JLS 3/e -- Lots Of Errors Arne Vajhøj <arne@vajhoej.dk> - 2011-02-06 22:03 -0500
Re: JLS 3/e -- Lots Of Errors Ken Wesson <kwesson@gmail.com> - 2011-02-07 04:27 +0100
csiph-web