[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug #750] java.text.CollationElementIterator.next() is broken
From: |
nobody |
Subject: |
[Bug #750] java.text.CollationElementIterator.next() is broken |
Date: |
Tue, 25 Jun 2002 10:06:36 -0400 |
=================== BUG #750: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=750&group_id=85
Submitted by: None Project: classpath
Submitted on: 2002-Jun-25 10:06
Severity: 5 - Major Resolution: None
Assigned to: None Status: Open
Platform Version: Red Hat 7.x
Summary: java.text.CollationElementIterator.next() is broken
Original Submission: The "pos" field is being incremented before the value of
the character at that position is queried. Also, this causes a
StringIndexOutOfBoundsException for zero-length strings.
I would suggest changing the method to work as follows:
1. test pos against string length, if at end return NULLORDER
2. get value of character
3. increment pos
4. Compute the return value and return it
I'm using a CVS version of classpath checked out on June 23rd, 2002.
No Followups Have Been Posted
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=750&group_id=85
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug #750] java.text.CollationElementIterator.next() is broken,
nobody <=