[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #6792(closed unknown: moved-to-unicodetools)

Opened 4 years ago

Last modified 3 years ago

UnicodeJSPs: sun.text.normalizer?

Reported by: srl Owned by: mark
Component: utilities-online Data Locale:
Phase: Review:
Weeks: Data Xpath:
Xref:

Description

did the following to get java 7 to compile. docs say UTF16.valueof was just a convenience for String.valueof.

Index: src/org/unicode/jsp/XPropertyFactory.java
===================================================================
--- src/org/unicode/jsp/XPropertyFactory.java	(revisión: 564)
+++ src/org/unicode/jsp/XPropertyFactory.java	(copia de trabajo)
@@ -13,8 +13,6 @@
 import org.unicode.jsp.UnicodeProperty.BaseProperty;
 import org.unicode.jsp.UnicodeProperty.SimpleProperty;
 
-import sun.text.normalizer.UTF16;
-
 import com.ibm.icu.dev.util.UnicodeMap;
 import com.ibm.icu.lang.UCharacter;
 import com.ibm.icu.lang.UProperty.NameChoice;
@@ -474,7 +472,7 @@
             setUniformUnassigned(hasUniformUnassigned);
         }
         protected String _getValue(int codepoint) {
-            return transform.transform(UTF16.valueOf(codepoint));
+            return transform.transform(String.valueOf(codepoint));
         }
     }
 

Attachments

Change History

comment:1 Changed 4 years ago by mark

Changed to use the ICU import (not sun). String.valueOf(1234) doesn't do the same as UTF16.valueOf(1234). The first produces "1234", the second "\u1234".

comment:2 Changed 3 years ago by markus

  • Status changed from new to closed
  • Resolution set to moved-to-unicodetools
View

Add a comment

Modify Ticket

Action
as closed
Next status will be 'new'
Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.