Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 32673 invoked from network); 29 Dec 2006 20:47:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Dec 2006 20:47:47 -0000 Received: (qmail 13522 invoked by uid 500); 29 Dec 2006 20:47:51 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 13432 invoked by uid 500); 29 Dec 2006 20:47:51 -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 13421 invoked by uid 99); 29 Dec 2006 20:47:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2006 12:47:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2006 12:47:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 36B5D7142AB for ; Fri, 29 Dec 2006 12:47:23 -0800 (PST) Message-ID: <14346895.1167425243221.JavaMail.jira@brutus> Date: Fri, 29 Dec 2006 12:47:23 -0800 (PST) From: "David J. M. Karlsen (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Commented: (LANG-297) Addition to ObjectUtils: public static List getAllSuperclassesUpTo( Class cls, Class upToClass ) In-Reply-To: <13899005.1164214082038.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/LANG-297?page=comments#action_12461439 ] David J. M. Karlsen commented on LANG-297: ------------------------------------------ It may well be featuritis. :) Initially I wanted this for an spring exception converting interceptor; but I fell down on a solution using Class' isAssignableFrom() instead. Though, it might be needed for some other use case - so we can just let the patch stick around in jira for an unscheduled release. > Addition to ObjectUtils: public static List getAllSuperclassesUpTo( Class cls, Class upToClass ) > ------------------------------------------------------------------------------------------------ > > Key: LANG-297 > URL: http://issues.apache.org/jira/browse/LANG-297 > Project: Commons Lang > Issue Type: Improvement > Affects Versions: 2.3 > Environment: N/A > Reporter: David J. M. Karlsen > Attachments: CommonsLang-patch-JIRA297.txt > > > Add another method: > /** > * Gets a List of superclasses up to, but not including upToClass. > * If upToClass is null this is effectively the same as getAllSuperClasses( cls ) (e.g. the whole hierarchy). > * returns null if cls is null > */ > public static List getAllSuperclassesUpTo( Class cls, Class upToClass ) > Patch with code and test will be added. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org