Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4117567
Votes 0
Synopsis Character.getType() needs to handle surrogates
Category java:classes_lang
Reported Against merlin , 1.2beta3
Release Fixed
State 11-Closed, duplicate of 4533872, request for enhancement
Priority: 5-Very Low
Related Bugs 4284923 , 4328816 , 4533872
Submit Date 06-MAR-1998
Description




Once surrogate characters start to be defined, Character.getType()
will need to be expanded to take two characters. Internally,
the code will need to be modified to efficiently store the
character properties for surrogates.

For ease of use, String.getType(int position) should also be
added. It would be the equivalent of:

ch = charAt(position);
if (ch >= \uD800 && ch < \uDC00 && position + 1 < length()) {
 return Character.getType(ch,charAt(position+1));
} else {
 return Character.getType(ch);
}
======================================================================
Work Around





======================================================================
Evaluation
Determined that this is not necessary for merlin at this time.
  xxxxx@xxxxx   2000-07-19



This will be addressed by Tiger feature 4533872.

======================================================================
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang