Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 20470 invoked from network); 12 Nov 2009 17:27:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 17:27:09 -0000 Received: (qmail 82841 invoked by uid 500); 12 Nov 2009 17:27:09 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 82777 invoked by uid 500); 12 Nov 2009 17:27:09 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 82767 invoked by uid 99); 12 Nov 2009 17:27:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 17:27:09 +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; Thu, 12 Nov 2009 17:27:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E5C41234C4B2 for ; Thu, 12 Nov 2009 09:26:39 -0800 (PST) Message-ID: <499817613.1258046799940.JavaMail.jira@brutus> Date: Thu, 12 Nov 2009 17:26:39 +0000 (UTC) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-1383) tests rely on US date formatting without setting the correct Locale In-Reply-To: <2055543237.1258038219696.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777073#action_12777073 ] Michael Dick commented on OPENJPA-1383: --------------------------------------- Checked in changes to use DateFormat.SHORT and Locale.US - let me know if this works for you. > tests rely on US date formatting without setting the correct Locale > ------------------------------------------------------------------- > > Key: OPENJPA-1383 > URL: https://issues.apache.org/jira/browse/OPENJPA-1383 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.0.0-M2 > Reporter: Mark Struberg > > A few tests fail if built on a non-US locale (using de.AT here): > {noformat} > java.text.ParseException: Unparseable date: "10/01/2008 1:51 AM" > at java.text.DateFormat.parse(DateFormat.java:337) > at org.apache.openjpa.persistence.query.results.TestJPQLMultiSelectTypedResults.populate(TestJPQLMultiSelectTypedResults.java:73) > at org.apache.openjpa.persistence.query.results.TestJPQLMultiSelectTypedResults.setUp(TestJPQLMultiSelectTypedResults.java:55) > {noformat} > tests in error: > {noformat} > testMultipleConstructor(org.apache.openjpa.persistence.query.results.TestJPQLMultiSelectTypedResults) > testMultipleConstructorMixWithMultiSelect(org.apache.openjpa.persistence.query.results.TestJPQLMultiSelectTypedResults) > testMultiSelect(org.apache.openjpa.persistence.query.results.TestJPQLMultiSelectTypedResults) > testMultiSelect(org.apache.openjpa.persistence.criteria.results.TestTypedResults) > testTypedJPQLQuery(org.apache.openjpa.persistence.criteria.results.TestTypedResults) > testDateQuery(org.apache.openjpa.persistence.criteria.results.TestTypedResults) > {noformat} > Please manually set the proper Locale in the tests -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.