Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: streaming problem and thread freeze Date: Wed, 11 May 2011 09:02:24 -0400 Organization: albasani.net Lines: 32 Message-ID: References: <005a9e79-36fe-4bf1-aa1d-bda3a5aaebf2@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net BkcOzg/Sbc7YvNsYOrWQj2+shP2nLqnB6z3gpKJdBnM9UkDnGuGJjtxDJlyyZgZH3V6FG+0CSk0KSYPiCzV0ZsOKTQKfii3N7bXWLyJkzFSdAYxL5ORVEA7Vc5//UA17 NNTP-Posting-Date: Wed, 11 May 2011 13:02:23 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="NAdjbcZVn4EN9P7UykXco0yBEeXCuDLIiJoTwN/1RNGcnyP8ZrgvHVoQ4E2vHTz9dwvrmH5T2OhlDCxp7j8zKLqeRAZImwSz7x28hB5Jbrmery/CvmYNa3T8nOY4S8Lm"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:bIvGs6ttMpmoOror/fJeA1550jg= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3969 On 05/10/2011 10:06 PM, Lawrence D'Oliveiro wrote: > In message, Daniele Futtorovic wrote: > >> On 10/05/2011 05:31, Lawrence D'Oliveiro allegedly wrote: >> >>> In message, Daniele Futtorovic wrote: >>> >>>> Secondly, although it is only a minor thing and only my personal >>>> opinion, this: >>>> >>>> } catch (IOException ex) { >>>> log.severe(ex.getMessage()); >>>> } >>>> >>>> is a *very* bad idea. Log the full stack. >>> >>> It would be so much easier if you could simply not bother to catch the >>> exception at all, and let your program crash with a full stack trace. >> >> It would be yet much easier, as you perhaps one day will learn, to >> realise that checked exceptions are not a bother, but an almost >> invaluable tool. > > So how does that help in this case? It prevents the program from crashing like some first-year student's first project and making you look like an idiot. Just to name one. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg