From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13024 invoked by alias); 24 Jul 2009 12:31:38 -0000 Received: (qmail 13003 invoked by uid 22791); 24 Jul 2009 12:31:35 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_50,J_CHICKENPOX_21,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.17.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Jul 2009 12:31:25 +0000 Received: from mail.aicas.de ([195.71.148.10]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MKsym-1MUJvl23GH-000YWi; Fri, 24 Jul 2009 14:31:22 +0200 Received: from mail.aicas.burg (caribic.aicas.burg [192.168.1.3]) by mail.aicas.de (Postfix) with ESMTP id CCAAB6AB165 for ; Fri, 24 Jul 2009 14:31:18 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.aicas.burg (Postfix) with ESMTP id B180B56192A for ; Fri, 24 Jul 2009 14:31:07 +0200 (CEST) Received: from mail.aicas.burg ([127.0.0.1]) by localhost (www.aicas.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19380-10 for ; Fri, 24 Jul 2009 14:31:01 +0200 (CEST) Received: from [192.168.1.164] (unknown [192.168.1.164]) by mail.aicas.burg (Postfix) with ESMTP id E7BBD561732 for ; Fri, 24 Jul 2009 14:31:01 +0200 (CEST) Message-ID: <4A69A990.2010609@aicas.com> Date: Fri, 24 Jul 2009 12:31:00 -0000 From: Mario Torre User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090703 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: mauve-patches@sources.redhat.com Subject: FYI: Update test to follow 1.6 specification behaviour. Content-Type: multipart/mixed; boundary="------------020009020201050901050800" Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2009/txt/msg00019.txt.bz2 This is a multi-part message in MIME format. --------------020009020201050901050800 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Content-length: 1061 A bit of explantion: The test expects an ArrayIndexOutOfBoundsException where a=20 RuntimeException should be thrown. This is a bug in JDK up to 1.5:=20 while assembling the RuntimeException, the=20 ArrayIndexOutOfBoundsException is raised. This is fixed in JDK 1.6. See also http://bugs.sun.com/view_bug.do?bug_id=3D4511992 and=20 http://bugs.sun.com/view_bug.do?bug_id=3D6204552. 2009-07-09 Mario Torre * gnu/testlet/java/beans/EventHandler/check14c.java: Update test to follow 1.6 specification behaviour. --=20 Mario Torre, Software Developer, http://www.jroller.com/neugens/ aicas Allerton Interworks Computer Automated Systems GmbH Haid-und-Neu-Stra=DFe 18 * D-76131 Karlsruhe * Germany http://www.aicas.com * Tel: +49-721-663 968-44 pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim Gesch=E4ftsf=FChrer: Dr. James J. Hunt Please, support open standards: http://endsoftpatents.org/ --------------020009020201050901050800 Content-Type: text/x-patch; name="2009-07-24-beans-event-handler-1.6.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="2009-07-24-beans-event-handler-1.6.patch" Content-length: 2187 # This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: mauve/gnu/testlet/java/beans/EventHandler/check14c.java --- mauve/gnu/testlet/java/beans/EventHandler/check14c.java Base (1.3) +++ mauve/gnu/testlet/java/beans/EventHandler/check14c.java Locally Modified (Based On 1.3) @@ -81,11 +81,10 @@ public void test(TestHarness harness) { - // The first test checks whether a ArrayIndexOutOfBoundsException is - // thrown + // The first test checks whether a RuntimeException is thrown // when the targetMethod cannot be found (Especially because of missing - // access - // rights). + // access rights). + // JDK 1.4 and 1.5 erroneously throw an ArrayIndexOutOfBoundsException. Listener l = (Listener) EventHandler.create(Listener.class, this, "targetMethod"); @@ -93,7 +92,7 @@ try { l.listen(); } catch (Exception e) { - correctException = e.getClass() == ArrayIndexOutOfBoundsException.class; + correctException = e.getClass() == RuntimeException.class; } harness.check(correctException, true, "missing target method"); @@ -146,10 +145,11 @@ // One may think that a creation like this will forward the Event // instance to the 'setEventProperty' // method but this is wrong and will cause a - // ArrayIndexOutOfBoundsException to be as if could not + // RuntimeException to be as if could not // find a method. In other words: If no property is defined action will // never be treated as a // property but always like a method name. + // JDK 1.4 and 1.5 erroneously throw an ArrayIndexOutOfBoundsException. l2 = (Listener2) EventHandler.create(Listener2.class, this, "eventProperty"); @@ -157,7 +157,7 @@ try { l2.listen(new Event()); } catch (Exception e) { - correctException = e.getClass() == ArrayIndexOutOfBoundsException.class; + correctException = e.getClass() == RuntimeException.class; } harness.check(correctException, true, "action is method"); --------------020009020201050901050800--