From uima-dev-return-4666-apmail-incubator-uima-dev-archive=incubator.apache.org@incubator.apache.org Fri Nov 09 11:45:13 2007 Return-Path: Delivered-To: apmail-incubator-uima-dev-archive@locus.apache.org Received: (qmail 27643 invoked from network); 9 Nov 2007 11:45:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 11:45:13 -0000 Received: (qmail 67824 invoked by uid 500); 9 Nov 2007 11:45:01 -0000 Delivered-To: apmail-incubator-uima-dev-archive@incubator.apache.org Received: (qmail 67736 invoked by uid 500); 9 Nov 2007 11:45:00 -0000 Mailing-List: contact uima-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-dev@incubator.apache.org Delivered-To: mailing list uima-dev@incubator.apache.org Received: (qmail 67727 invoked by uid 99); 9 Nov 2007 11:45:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 03:45:00 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.52.223.144] (HELO gateway03.websitewelcome.com) (74.52.223.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 11:45:02 +0000 Received: (qmail 6525 invoked from network); 9 Nov 2007 11:44:55 -0000 Received: from gator74.hostgator.com (67.18.27.130) by gateway03.websitewelcome.com with ESMTPS (DHE-RSA-AES256-SHA encrypted); 9 Nov 2007 11:44:55 -0000 Received: from ool-44c6c63b.dyn.optonline.net ([68.198.198.59]:2063 helo=[192.168.1.100]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IqSHw-0002tM-0E for uima-dev@incubator.apache.org; Fri, 09 Nov 2007 05:44:40 -0600 Message-ID: <473447F7.5000409@schor.com> Date: Fri, 09 Nov 2007 06:43:51 -0500 From: Marshall Schor User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: uima-dev@incubator.apache.org Subject: Re: Java 1.5 Generics References: <37133BF8-D831-4AA5-8531-6439B082D064@gmail.com> <4731FA0B.3010106@schor.com> <58F166FA-AB86-44C5-B5EF-7E6AA4F77A62@gmail.com> In-Reply-To: <58F166FA-AB86-44C5-B5EF-7E6AA4F77A62@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-Virus-Checked: Checked by ClamAV on apache.org Is doing this kind of change to the public interfaces a "compatible" change for existing user code ? In other words, will existing user code still run after this change? -Marshall Jörn Kottmann wrote: >> None yet that I know of. Feel free to draft some kind of proposal, and >> post here or perhaps on our wiki. > > If I got it right its possible to just insert generics everywhere in > our code without > breaking any code which does not use generics. > > The java compiler does a source-to-source translation and replaces the > generics > with explicit cast like its done now in our code. After the > source-to-source translation > the code should be the same as now. > > Eclipse has a re-factoring tool which can guess generics but does not > always work correctly. > Someone must dig trough the code and change all the generics in a semi > automatic manner with > the tool. Maybe it will help if all interfaces are converted first. > > I would offer to do this job for the uimaj-core project I already > planned to take a closer look at > the source code, so I can do it together. > > Jörn >