Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 64265 invoked from network); 4 Oct 2007 16:49:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Oct 2007 16:49:38 -0000 Received: (qmail 15687 invoked by uid 500); 4 Oct 2007 16:49:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 15649 invoked by uid 500); 4 Oct 2007 16:49:27 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 15639 invoked by uid 99); 4 Oct 2007 16:49:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2007 09:49:27 -0700 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 [66.196.96.97] (HELO smtp124.sbc.mail.re3.yahoo.com) (66.196.96.97) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 Oct 2007 16:49:27 +0000 Received: (qmail 16344 invoked from network); 4 Oct 2007 16:48:06 -0000 Received: from unknown (HELO ?192.168.254.209?) (ddebrunner@sbcglobal.net@75.26.1.154 with plain) by smtp124.sbc.mail.re3.yahoo.com with SMTP; 4 Oct 2007 16:48:03 -0000 X-YMail-OSG: 3na2FB4VM1lktFRblHGeNswIkGBYzjybY_IwQ5LuoekLMaiSc2jVQh3Nj.A4Ak39okWpjZQXn7foTySW1XP0L6du_aHM4iEV_dGpyqqLk370tnQrpIRkwq9evjZQ1Xq54WyiM6efCqu0nm4- Message-ID: <4705194B.3010802@apache.org> Date: Thu, 04 Oct 2007 09:48:11 -0700 From: Daniel John Debrunner User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: [VOTE] Require Java 5 (or later) compiler to build Derby References: <46FA62B4.3010102@sun.com> <4704228C.4070905@apache.org> <4704969A.2020002@sun.com> <4705053D.8030105@apache.org> In-Reply-To: <4705053D.8030105@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Daniel John Debrunner wrote: > Thomas Nielsen wrote: >> Daniel John Debrunner wrote: >>> Seems that it might be possible with this to start using some 1.5 >>> language constructs in Derby's code: those that compile down to >>> standard byte code. This would be by using -source 1.5 -target 1.4 in >>> the build.xml files. >> >> Be *very* careful about what 1.5 language features you start using in >> your code. It's not as easy as specifying -source 1.5 -target 1.4 to >> get a 1.4 compatible class/jar. >> >> If you end up using the "wrong" language constructs in your code, you >> will become dependant on additional libraries like Retrowaver (or >> similar) that implements the missing features/classes for you. > > To be clear I explicitly meant Java language constructs (ie. JLS), not > 1.5 new methods or classes. As Bryan said if you could share your > experience that would be helpful. Never mind: > $JAVA_HOME/bin/javac -target 1.4 -source 1.5 javac: source release 1.5 requires target release 1.5 Dan.