Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 13906 invoked from network); 28 Mar 2006 04:47:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2006 04:47:40 -0000 Received: (qmail 6939 invoked by uid 500); 28 Mar 2006 04:47:30 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 6778 invoked by uid 500); 28 Mar 2006 04:47:29 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 6745 invoked by uid 99); 28 Mar 2006 04:47:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 20:47:29 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stepan.mishura@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nproxy.gmail.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 20:47:28 -0800 Received: by nproxy.gmail.com with SMTP id l36so959111nfa for ; Mon, 27 Mar 2006 20:47:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LSc5L7HJtEZIVnbYSNN7ReBtGdDDb/zDdd2B1ZSJgk/2GnGCntIC2BOz9pBXenpPCdzOL3XwnjFHTvMiwOcuf9jVMGSr++rMagBeALWn4XtNy0vZP0qqrAA5kytxsOWVSIK6jwyEyF2+g9AUJPJeBMFd5BpxEQRhxx0FdQqbXGg= Received: by 10.48.243.19 with SMTP id q19mr290086nfh; Mon, 27 Mar 2006 20:47:06 -0800 (PST) Received: by 10.49.9.9 with HTTP; Mon, 27 Mar 2006 20:47:06 -0800 (PST) Message-ID: <6e47b64f0603272047p11b2dd61x6a6ae4991b065a36@mail.gmail.com> Date: Tue, 28 Mar 2006 11:47:06 +0700 From: "Stepan Mishura" To: harmony-dev@incubator.apache.org Subject: Re: [jira] Updated: (HARMONY-250) disambiguate some error messages In-Reply-To: <44284F20.6070902@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4356_33158488.1143521226872" References: <1244426620.1143233479935.JavaMail.jira@ajax> <44284F20.6070902@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_4356_33158488.1143521226872 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Tim, I agree with you that this should be fixed. I found the similar case in javax.crypto.CipherSpi class I'm going to fill new JIRA tracker, scan all code in security module and fi= x all such cases. May be in makes sense to avoid patches conflict apply this patch first and next patch will fix the issue with exception. Thanks, Stepan. On 3/28/06, Tim Ellison wrote: > > Why does the javax.crypto.spec.SecretKeySpec create an exception eagerly > in a static? > > > private static final IllegalArgumentException BADPARAMS_EXC =3D > > new IllegalArgumentException( > > "algorithm is null or key is null, empty, or too short."); > > If the exception is thrown it is not going to have a useful stack to > help debug the cause of the bad parameters. > > Regards, > Tim > > Mark Hindess (JIRA) wrote: > > [ http://issues.apache.org/jira/browse/HARMONY-250?page=3Dall ] > > > > Mark Hindess updated HARMONY-250: > > --------------------------------- > > > > Attachment: disambiguate.error.messages.diff > > > > Patch to split some error messages in to more less ambiguous messages. > > > > > >> disambiguate some error messages > >> -------------------------------- > >> > >> Key: HARMONY-250 > >> URL: http://issues.apache.org/jira/browse/HARMONY-250 > >> Project: Harmony > >> Type: Improvement > >> Components: Classlib > >> Reporter: Mark Hindess > >> Priority: Trivial > >> Attachments: disambiguate.error.messages.diff > >> > >> As discussed on the -dev list, some exceptions are too ambiguous. I > will attach a patch to fix some of them. > > > > -- > > Tim Ellison (t.p.ellison@gmail.com) > IBM Java technology centre, UK. > -- Thanks, Stepan Mishura Intel Middleware Products Division ------=_Part_4356_33158488.1143521226872--