Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!weretis.net!feeder4.news.weretis.net!news.albasani.net!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: JLS 3/e -- Lots Of Errors Date: Sat, 05 Feb 2011 09:43:18 -0500 Organization: albasani.net Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net ch3hUPEVHQg9DKAzEumTwGDKia2sMgoty7h6ASU79Pl1e74RV0J90/dgL/u/9Yhd6TZkrwTDiH9RtnphwwH3+w== NNTP-Posting-Date: Sat, 5 Feb 2011 14:43:16 +0000 (UTC) In-Reply-To: Cancel-Lock: sha1:nIj+62NzED81pxvCdMr1tDhr7NY= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 Injection-Info: news.albasani.net; logging-data="qO4qk8txmdK6U59T9LTHUeAyb+ZlnkEZR+7a0LIUt7BRoNG0RYxQTQ+1hrbmxocrXFLHb/EN4cWwgCiYv6vGwJzoGfczP5AlK2wj3D6d6MTglw/yzp6di4KTRE9HqANM"; mail-complaints-to="abuse@albasani.net" Xref: csiph.com comp.lang.java.programmer:25518 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'. That's an API issue and not strictly something to find in the JLS. So far not one of the things you've cited as an error has actually been an error in the JLS. There've been some things difficult to understand, and you've made some errors, but none have actually come from the JLS. -- Lew Ceci n'est pas une fenĂȘtre. .___________. |###] | [###| |##/ | *\##| |#/ * | \#| |#----|----#| || | * || |o * | o| |_____|_____| |===========|