Return-Path: Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: (qmail 28523 invoked from network); 29 Sep 2008 08:40:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Sep 2008 08:40:33 -0000 Received: (qmail 47313 invoked by uid 500); 29 Sep 2008 08:40:31 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 47290 invoked by uid 500); 29 Sep 2008 08:40:30 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 47106 invoked by uid 99); 29 Sep 2008 08:40:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2008 01:40:30 -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 [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 29 Sep 2008 08:39:29 +0000 Received: (qmail 1420 invoked from network); 29 Sep 2008 08:40:02 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 29 Sep 2008 08:40:02 -0000 Cc: dev@cayenne.apache.org Message-Id: <2ECDD3B2-792B-43EB-AD4A-5C2F8F1834BB@apache.org> From: Andrus Adamchik To: legal-discuss@apache.org In-Reply-To: <48E091B8.6030700@apache.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Java 1.5 / 1.6 coexistence issues Date: Mon, 29 Sep 2008 11:40:01 +0300 References: <147C8FCD-D03B-451F-BA62-FFFACCAF42A3@apache.org> <48E091B8.6030700@apache.org> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Ugh, stupid me, we have Harmony right here at Apache :-) Thanks Tim, I will take a look, and ask questions if we can't figure it on our own. Thanks, Andrus On Sep 29, 2008, at 11:28 AM, Tim Ellison wrote: > Andrus Adamchik wrote: >> We are trying to setup Cayenne ORM project structure to be both >> buildable and runnable under Java 1.5 and 1.6. ("buildable" is >> important >> for non-64-bit Intel Mac users. There's no Java 6 for those older >> Macs). >> >> The problem is that we are implementing a bunch of java[x].sql >> interfaces in Cayenne that have changed between the versions of >> Java. So >> take for instance a class implementing java.sql.ResultSet. To be >> able to >> compile against 1.6 jars, we need methods like this: >> >> public java.sql.SQLXML getSQLXML(int) {...} >> >> Which does not compile against 1.5 jars. So what I am thinking is >> building a small "JDBC4-compatibility" Maven module based on >> OpenJDK (or >> Sun JRE) that contains needed interfaces from java[x].sql packages. >> It >> will be done outside Apache. Then the plan to make it a Cayenne >> "provided" dependency. I.e. it won't be shipped with Cayenne. >> >> Any licensing considerations with this approach? > > Just use Apache Harmony's implementations and you will not have any > such > problems. > > There is a Java 5 version [1] and Java 6 version [2] available. if > you > want help with a compile-against JAR come and talk on the dev list. > > [1] > http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/ > [2] > http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/ > > Regards, > Tim > > --------------------------------------------------------------------- > DISCLAIMER: Discussions on this list are informational and educational > only. Statements made on this list are not privileged, do not > constitute legal advice, and do not necessarily reflect the opinions > and policies of the ASF. See for > official ASF policies and documents. > --------------------------------------------------------------------- > To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org > For additional commands, e-mail: legal-discuss-help@apache.org > >