Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 64677 invoked from network); 4 Feb 2008 22:49:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2008 22:49:28 -0000 Received: (qmail 35236 invoked by uid 500); 4 Feb 2008 22:49:20 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 35223 invoked by uid 500); 4 Feb 2008 22:49:20 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 35212 invoked by uid 99); 4 Feb 2008 22:49:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 14:49:20 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 22:49:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0E495714070 for ; Mon, 4 Feb 2008 14:49:08 -0800 (PST) Message-ID: <32697297.1202165348055.JavaMail.jira@brutus> Date: Mon, 4 Feb 2008 14:49:08 -0800 (PST) From: "Brendan Miller (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Created: (TORQUE-109) Torque Runtime fails SqlExpressionTest with Java 1.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Torque Runtime fails SqlExpressionTest with Java 1.6 ---------------------------------------------------- Key: TORQUE-109 URL: https://issues.apache.org/jira/browse/TORQUE-109 Project: Torque Issue Type: Bug Components: Runtime Affects Versions: 3.3-RC1, 3.3-RC2, 3.3-RC3 Environment: Linux, Java 1.6 Reporter: Brendan Miller (posted on torque-devel) > > I had a question about 3.3-RC3. Am I the only one for whom the > SqlExpressionTest fails? Surely this cannot be. I am building from a > clean svn co of the TORQUE_3_3_RC3 tag(s). > > $ maven jar:jar .. > [junit] Running org.apache.torque.util.SqlExpressionTest > [junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 0.623 sec > [junit] [ERROR] TEST org.apache.torque.util.SqlExpressionTest FAILED .. > > BUILD FAILED > File...... /home/brmiller/.maven/cache/maven-test-plugin-1.6.2/plugin.jelly > Element... fail > Line...... 181 > Column.... 54 > There were test failures. > Total time: 17 seconds > Finished at: Fri Feb 01 21:19:56 GMT 2008 > I went back to 3.3-RC1 and it won't pass the same test either. And I know I've built 3.3-RC1 from source before. It then occurred to me that we moved our development environment to Java 1.6 since then. Rebuilding the torque runtime (3.3-RC3) using Java 1.5 and the tests work just fine. It turns out that the order of the string values tested for in SqlExpressionTest.testBuildInStringObjectSqlEnumbooleanDB is different still in Sun Java 1.6 than 1.3 or 1.4 (for which cases already exist). This list of re-ordered strings is getting a bit hackish, but a simple test for the order presented in jdk 1.6 "fixes" the issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org