Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 38763 invoked from network); 18 Sep 2007 21:58:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2007 21:58:45 -0000 Received: (qmail 90161 invoked by uid 500); 18 Sep 2007 21:58:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 90125 invoked by uid 500); 18 Sep 2007 21:58:35 -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 90115 invoked by uid 99); 18 Sep 2007 21:58:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 14:58:35 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-mail-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 22:00:28 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-2-fe1.eu.sun.com [192.18.6.10]) by gmp-eb-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id l8ILwAN9012987 for ; Tue, 18 Sep 2007 21:58:10 GMT Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JOL00I013IYG700@fe-emea-09.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-dev@db.apache.org; Tue, 18 Sep 2007 22:58:10 +0100 (BST) Received: from localhost ([193.71.105.147]) by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JOL00DAD3OX6YF0@fe-emea-09.sun.com> for derby-dev@db.apache.org; Tue, 18 Sep 2007 22:58:10 +0100 (BST) Date: Tue, 18 Sep 2007 23:57:16 +0200 From: Knut Anders Hatlen Subject: Re: Requiring Java 5 compiler In-reply-to: <46EFD8F2.1050203@sun.com> Sender: Knut.Hatlen@Sun.COM To: derby-dev@db.apache.org Message-id: Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <46EEA838.808@sun.com> <46EFD8F2.1050203@sun.com> User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Rick Hillegas writes: > You are right. The compiler won't let you compile from Java 5 source > down to 1.4 classes. We would not be able to use Java 5 features in > our old code. However, using the Java 5 compiler would make the > following possible: > > 1) Optional optimizations of engine code to take advantage of features > introduced by later VMs. > > 2) New tools which take advantage of extensions added in later > versions of Java. E.g., JMX-based tools--JMX is included in J2SE from > version 5.0 on. > > 3) Tests which verify that user code, built under later versions of > Java, plays well when it runs inside Derby functions and procedures. I'm +1 to this. I have added some 1.5 code by piggybacking on the optional jdk16 target and setting source level to 1.5, which works, but I think it is cleaner to require a Java 5 compiler. Unless there is a major development platform that lacks a Java 5 compiler (I'm not aware of any), I think you should go for it! -- Knut Anders