Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 208DB9B40 for ; Thu, 29 Mar 2012 20:38:01 +0000 (UTC) Received: (qmail 71573 invoked by uid 500); 29 Mar 2012 20:37:59 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 71518 invoked by uid 500); 29 Mar 2012 20:37:59 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 71511 invoked by uid 99); 29 Mar 2012 20:37:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 20:37:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uwe@thetaphi.de designates 188.138.97.18 as permitted sender) Received: from [188.138.97.18] (HELO mail.sd-datasolutions.de) (188.138.97.18) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 20:37:52 +0000 Received: from VEGA (port-92-196-124-45.dynamic.qsc.de [92.196.124.45]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id A104314AA230 for ; Thu, 29 Mar 2012 20:37:31 +0000 (UTC) From: "Uwe Schindler" To: References: <33728146.48.1333046037570.JavaMail.hudson@aegis> <00cd01cd0de0$46a70a00$d3f51e00$@thetaphi.de> In-Reply-To: Subject: RE: [JENKINS] Lucene-Solr-tests-only-3.x - Build # 12908 - Failure Date: Thu, 29 Mar 2012 22:37:57 +0200 Message-ID: <00cf01cd0deb$d36a09f0$7a3e1dd0$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQK8aS3UzcP2GpDTcH6+x5nzKd+MigKVzhbTAggP+zEBioEx2wKJKh/alF125XA= Content-Language: de I know. The VM specification does not even need to know the Exception = type. If you trick the Java compiler by generics to think the method = cannot throw the exception it will simply compile the code. If the = Exception that is thrown is checked that does not matter, the VM will = bubble up until someone catches. The only known other sneaky way is this: static void sneakyThrow(Throwable t) { Thread.currentThread().stop(t); } But less cool, I agree. The third way is our all fried sun.misc.Unsafe: Unsafe.theUnsafe.throwException(...) (needs reflections, as always). Much more uncool. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: dawid.weiss@gmail.com [mailto:dawid.weiss@gmail.com] On Behalf = Of > Dawid Weiss > Sent: Thursday, March 29, 2012 9:21 PM > To: dev@lucene.apache.org > Subject: Re: [JENKINS] Lucene-Solr-tests-only-3.x - Build # 12908 - = Failure >=20 > bq. Exploits a weakness in the runtime to throw an arbitrary throwable = without > the traditional declaration. >=20 > This is hardly a weakness; it's part of the JVM spec (or rather: the = distinction of > checked/ unchecked is part of the Java specification not the JVM = specification). >=20 > > But it's in my opinion a generics bug in combination with > > suppresswarnings >=20 > It's an exploit of how generics are (under)specified. Many people = think checked > exceptions are actually a stupid invention, I think it's debatable, = some of them > are really annoying... >=20 > Dawid >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For = additional > commands, e-mail: dev-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org