[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-dev
Subject: [jira] Created: (LUCENE-788) contrib/benchmark assumes Locale.US
From: "Doron Cohen (JIRA)" <jira () apache ! org>
Date: 2007-01-28 5:22:49
Message-ID: 27165032.1169961769057.JavaMail.jira () brutus
[Download RAW message or body]
contrib/benchmark assumes Locale.US for parsing dates in Reuters collection
---------------------------------------------------------------------------
Key: LUCENE-788
URL: https://issues.apache.org/jira/browse/LUCENE-788
Project: Lucene - Java
Issue Type: Bug
Affects Versions: 2.1
Reporter: Doron Cohen
Assigned To: Doron Cohen
Priority: Minor
Fix For: 2.1
SimpleDateFormat used for parsing dates in Reuters documents is instantiated without \
specifying a locale. So it is using the default locale. If that happens to be US, it \
will work. But for another locale a parse exception is likely.
Affects both StandardBenchmarker and ReutersDocMaker.
Fix is trivial - specify Locale.US for SimpleDateFormat's constructor.
--
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic