Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 55223 invoked from network); 6 May 2008 07:28:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 May 2008 07:28:07 -0000 Received: (qmail 49365 invoked by uid 500); 6 May 2008 07:28:05 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 49314 invoked by uid 500); 6 May 2008 07:28:05 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 49303 invoked by uid 99); 6 May 2008 07:28:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 00:28:05 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.97.136.173] (HELO n064.sc1.he.tucows.com) (64.97.136.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 07:27:10 +0000 Received: from sc1-out02.emaildefenseservice.com (64.97.139.2) by n064.sc1.he.tucows.com (7.2.069.1) id 47697705013DB5FE for dev@tomcat.apache.org; Tue, 6 May 2008 07:27:30 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,3a1c31e08a701b99,63566674dc0c11f7,markt@apache.org,-,RULES_HIT:355:379:854:945:960:967:988:989:1183:1187:1260:1261:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1766:1792:2194:2199:2393:2559:2562:2693:2828:3352:3636:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:4031:5007:7652,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fu,MSBL:none,DNSBL:none,TSO:0 X-Spamcatcher-Explanation: Received: from [10.49.200.134] (unknown [212.183.136.194]) (Authenticated sender: med.thomas) by sc1-out02.emaildefenseservice.com (Postfix) with ESMTP for ; Tue, 6 May 2008 07:27:29 +0000 (UTC) Message-ID: <48200860.6080008@apache.org> Date: Tue, 06 May 2008 08:27:28 +0100 From: Mark Thomas User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Tomcat Developers List Subject: Generics and the spec interfaces X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org All, As you have probably noticed I am doing some clean-up of the trunk codebase as and when the opportunity arises. So far the clean has identified the odd copy/paste error or casting problem as well as (hopefully) making the code easier to read. The fixes for the errors are getting ported to 6.0.x. I am currently pondering what to do with lines like this: Enumeration e = request.getHeaderNames(); As I see it the options are: 1. Leave it as it is. 2. Use Enumeration e = request.getHeaderNames(); 3. Use Enumeration e = request.getHeaderNames(); 4. Use Enumeration e = request.getHeaderNames(); and modify HttpServletRequest to use generics 5. Something else. I am leaning towards 4 on the basis that a) This is trunk, not a release branch b) This option generates no warnings c) I assume the spec will start using generics at some point (maybe in 3.0?) If modifying the spec interfaces seems like a step too far then 3 would be my next choice. Thoughts? Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org