Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 72309 invoked from network); 16 Feb 2010 18:09:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2010 18:09:49 -0000 Received: (qmail 81098 invoked by uid 500); 16 Feb 2010 18:09:49 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 81058 invoked by uid 500); 16 Feb 2010 18:09:49 -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 80956 invoked by uid 99); 16 Feb 2010 18:09:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 18:09:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 18:09:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5232D234C4BA for ; Tue, 16 Feb 2010 10:09:28 -0800 (PST) Message-ID: <939951995.306971266343768335.JavaMail.jira@brutus.apache.org> Date: Tue, 16 Feb 2010 18:09:28 +0000 (UTC) From: "CG Monroe (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Closed: (TORQUE-134) Recent change in Java 1.6.0_17 breaks Value.asDate() In-Reply-To: <1712904645.298331266325047895.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] CG Monroe closed TORQUE-134. ---------------------------- > Recent change in Java 1.6.0_17 breaks Value.asDate() > ---------------------------------------------------- > > Key: TORQUE-134 > URL: https://issues.apache.org/jira/browse/TORQUE-134 > Project: Torque > Issue Type: Bug > Components: Village > Environment: Java 1.6.0_17 or higher > Reporter: Dan Price > Assignee: CG Monroe > > See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6898593 for more information. > Sun fixed a bug in Java 1.6.0_17 related to java.sql.Date.valueOf. In all previous versions of Java, it would accept incorrect values and malformed JDBC date escape format strings. Now, it does more checking and throws IllegalArgumentException if the passed date string is not valid. > The java.sql.Date.valueOf function now checks that the form yyyy-MM-dd is strictly followed, so if leading zeroes are suppressed on any of the elements, the valueOf function will throw an exception. Village builds the JDBC date escape format string without forcing leading zeroes, so it can produce intermediate values of the form yyyy-M-d when either the month of the date are less than 10. > The result of this was a Torque based program that unexpectedly started throwing exceptions after upgrading from Java 1.6.0_10 to 1.6.0_18. -- 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