Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 51934 invoked from network); 23 Sep 2005 17:36:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Sep 2005 17:36:43 -0000 Received: (qmail 79291 invoked by uid 500); 23 Sep 2005 17:36:42 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 79236 invoked by uid 500); 23 Sep 2005 17:36:42 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 79221 invoked by uid 99); 23 Sep 2005 17:36:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2005 10:36:41 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 409ADDF for ; Fri, 23 Sep 2005 19:36:20 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: derby-commits@db.apache.org Date: Fri, 23 Sep 2005 17:36:20 -0000 Message-ID: <20050923173620.3018.37153@ajax.apache.org> Subject: [Db-derby Wiki] Update of "ModuleVersioningGuidelinesReviewDjd1" by DavidVanCouvering X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear Wiki user, You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification. The following page has been changed by DavidVanCouvering: http://wiki.apache.org/db-derby/ModuleVersioningGuidelinesReviewDjd1 ------------------------------------------------------------------------------ To answer Craig's concern, I believe you can. Strictly, you don't need the check at all, you just get a !NoSuchMethodError if you try to invoke a method that does not exist (which you could catch and ignore but I think that's ugly). ---- - '''TMNK:''' I'm not sure what module means in this context ... The word module was used in paper of derby as next. [http://db.apache.org/derby/papers/derby_arch.html#Modules] Are they, which mentioned in the paper and in this discussion, refer same existance ? + '''DVC:''' I moved Tomohito's comments as separate items in ModuleVersioningGuidelinesReview as I felt they were separate topics from the discussion of version detection and how to decide if a feature is available. - Furthermore, what is the code to be shared as module in this discussion ? - If it were just java apis, they are shared already .... + ---- + + '''DVC:''' Jeremy, can you explain why internalized Strings have more meaning than ints? In the code whether they're strings or not they'll be declared as a constant and used as such in the code. + + So whether you have {{{public static final String FANCY_FEATURE = "FancyFeature"}}} or {{{public static final int FANCY_FEATURE = 2}}} it still looks the same in the calling code, e.g. {{{if CommonModule.implementsFeature(CommonModule.FANCY_FEATURE)}}}. I prefer ints because then I could do a simple array and look up by index, and determine if a feature is not implemented by noticing that the index is out of range. +