JDK-4065540 : java.text.Collator.compare() is broken
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 1.1.3,1.1.5
  • Priority: P2
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_2.5.1,windows_nt
  • CPU: x86,sparc
  • Submitted: 1997-07-17
  • Updated: 1997-12-15
  • Resolved: 1997-12-15
Related Reports
Duplicate :  
Description

Name: rlT66838			Date: 07/17/97


Collator.compare() method returns bogus results
if either of the strings being compared have
spaces in them.
Ex: 
o Collator.compare("abcd", "abcd e") returns 0.
o Collator.compare("abcd e", "abcd f") returns 0.



======================================================================

Comments
EVALUATION This was a bug at one time, but it can no longer be reproduced. It was probably fixed in the huge putback that Senthil and Norbert Schatz did in November.
11-06-2004

WORK AROUND Name: rlT66838 Date: 07/17/97 None. However, using CollationKey seems to work fine but it is siginificantly slow. ======================================================================
11-06-2004