Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: supercalifragilisticexpialadiamaticonormalizeringelimatisticantations Newsgroups: comp.lang.java.programmer Subject: Re: Catching mulitple Exceptions in JDK 1.7 Date: Wed, 03 Aug 2011 23:31:13 -0400 Organization: supercalifragilisticexpialadiamaticonormalizeringelimatisticantations Lines: 26 Message-ID: References: <0510e90d-1a19-4fe1-9445-65314b5da038@glegroupsg2000goo.googlegroups.com> NNTP-Posting-Host: yifYu5jjQd240fPnOtRJZg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: WinVN 0.99.12z (x86 32bit) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6785 On 02/08/2011 5:07 PM, Patricia Shanahan wrote: ... > It seems to generally do the most useful thing it could, but I really > would like documentation that would let me predict the results without > running the experiments. I wonder if Oracle isn't as committed to quality documentation (or, perhaps, to Java at all) as Sun was. :( I also wonder what happens with this: public void method () throws SomeCheckedException, SomeUnrelatedCheckedException { try { throwSomething(); } catch (SomeCheckedException | SomeUnrelatedCheckedException e) { logger.log(e); throw e; } } Does this work? Or does method() need throws LastCommonSupertypeOfThoseCheckedExceptions instead to avoid a compile error?