Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 52991 invoked from network); 2 Jun 2006 04:46:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 04:46:16 -0000 Received: (qmail 44080 invoked by uid 500); 2 Jun 2006 04:46:15 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 44033 invoked by uid 500); 2 Jun 2006 04:46:14 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 44017 invoked by uid 99); 2 Jun 2006 04:46:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 21:46:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of foamdino@gmail.com designates 64.233.162.203 as permitted sender) Received: from [64.233.162.203] (HELO nz-out-0102.google.com) (64.233.162.203) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 21:46:13 -0700 Received: by nz-out-0102.google.com with SMTP id l1so465865nzf for ; Thu, 01 Jun 2006 21:45:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=DtPWOOm78OCy617eHwJWhjPeChGQTVt/R+Wt27z5XhYfb0le+4d9PHlFpFSWTsZL3p/Aeu6jg+9yjNrNqDujXTmxIppAQTuD6jL2tggNVWpwOqd1+7WIiP23cHyJsTxMDIvXSI7nWyYXc+pbwBaGiuAPwlkdBuslvBDxmubzEZA= Received: by 10.36.77.12 with SMTP id z12mr1883795nza; Thu, 01 Jun 2006 21:45:52 -0700 (PDT) Received: from ?192.168.5.42? ( [58.186.91.181]) by mx.gmail.com with ESMTP id r1sm1204787nzd.2006.06.01.21.45.51; Thu, 01 Jun 2006 21:45:52 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <87zmgw6um3.fsf@www.samaflost.de> References: <878xog8a4m.fsf@www.samaflost.de> <8AECA5AB-D87E-476F-B59F-5B8479A5AE61@gmail.com> <87zmgw6um3.fsf@www.samaflost.de> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Kev Jackson Subject: Re: Ant 1.7 release Date: Fri, 2 Jun 2006 11:54:46 +0700 To: "Ant Developers List" X-Mailer: Apple Mail (2.750) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 2 Jun 2006, at 11:37, Stefan Bodewig wrote: > On Fri, 2 Jun 2006, Kev Jackson wrote: >> On 2 Jun 2006, at 11:16, Stefan Bodewig wrote: >> >>> Object signature alternative. It is impossible to compile code on >>> JDK 1.5 that uses the method and still works on JDK 1.4 - but the >>> opposite is also true >> >> This leaves us in a pickle unless we can guarantee that the every >> line of code will both compile and run correctly on all JVMs >> released since 1.2. I'm not sure that we can guarantee to this >> level of surety. > > We simply can't. Leaving the generics/erasure problem aside, there is > a way to ensure you don't compile against methods that are too new, > but it is painful: start building with JDK 1.2, compile what hasn't > been compiled by building with JDK 1.3, repeat with JDK 1.4 and 1.5. > Well that's physically impossible for my main machine as there isn't a JDK 1.2 for OSX (earliest is 1.3.1 I believe). > The pragmatic way is to assume that (1) nobody complained that Ant > 1.6.5 didn't work so JDK 1.4 was fine back then and (2) the unit tests > cover quite a bit of our code so running the unit test suite with JDK > 1.2 is supposed to find trouble spots. So then the 'solution' (for want of a better description) would be simply to compile with the Java5 jdk, but set the source option as 1.4. Then run the junit tests on a 1.2 vm? As I'm assuming that other people will be testing on various os' and vms, there should be adequate coverage of the vms (but I'm also guessing that there will be a tendency for the vms to be skewed towards the newer versions (1.4 +)) Thanks Kev -- "Society in every state is a blessing, but government even in its best state is but a necessary evil; in it's worst state an intolerable one" - Thomas Paine --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org