Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 92839 invoked from network); 7 Sep 2005 00:29:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2005 00:29:16 -0000 Received: (qmail 85639 invoked by uid 500); 7 Sep 2005 00:29:13 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 85619 invoked by uid 500); 7 Sep 2005 00:29:13 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 85606 invoked by uid 99); 7 Sep 2005 00:29:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 17:29:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.68.127.190] (HELO carmanconsulting.com) (216.68.127.190) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 17:29:26 -0700 Received: from CARMANI9300 (carmanconsulting.com [127.0.0.1]) by carmanconsulting.com (8.13.4/8.13.4) with ESMTP id j870T5av026907 for ; Tue, 6 Sep 2005 20:29:10 -0400 Message-Id: <200509070029.j870T5av026907@carmanconsulting.com> From: "James Carman" To: "'Jakarta Commons Developers List'" Subject: RE: [lang] enhanced version of Class.forName Date: Tue, 6 Sep 2005 20:29:08 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Thread-Index: AcWzIQ3+JwuZTt1WQhSiy0WJcaECMQAIBgNg In-Reply-To: <431DFB26.6040404@btopenworld.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N So, you're saying that you'd rather return a null Class object from getClass() when you pass in a null? I can do that, no problem, but Class.forName() actually throws an NPE for that scenario. Not that we should try to mimic exactly what they did (otherwise we wouldn't have to write this method), but we might want to be consistent. I don't know. -----Original Message----- From: Stephen Colebourne [mailto:scolebourne@btopenworld.com] Sent: Tuesday, September 06, 2005 4:25 PM To: Jakarta Commons Developers List Subject: Re: [lang] enhanced version of Class.forName James Carman wrote: > Well, what does the [lang] "team" think about this approach (just letting > Class.forName() throw the ClassNotFoundException)? Does this work for you > guys? I have added a patch to issue 36512 which includes code to implement > it this way (my latest patch). Are there any votes against this method > being implemented this way? If not, do you guys care if I go ahead and > commit it (I'll wait a while for votes)? Since I'm not a "normal" [lang] > committer, I don't want to step on anyone's toes. You are welcome to check it in, but you will need to add your name to the [lang] committers in project.xml. Other committers will then review it :-) For reference, lang strives to avoid NPE, so typically I would want a null input to yield a null output. Stephen --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org