You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@locus.apache.org on 2000/12/20 19:12:05 UTC
cvs commit: xml-xalan/src/org/apache/xalan/xslt ElemNumber.java
mmidy 00/12/20 10:12:04
Modified: src/org/apache/xalan/xslt ElemNumber.java
Log:
Patch from Steven Serocki to fix deadlock of default Locale in ElemNumber. Use a clone of the Locale instead of the actual instance.
Revision Changes Path
1.17 +5 -4 xml-xalan/src/org/apache/xalan/xslt/ElemNumber.java
Index: ElemNumber.java
===================================================================
RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/ElemNumber.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ElemNumber.java 2000/09/19 18:53:56 1.16
+++ ElemNumber.java 2000/12/20 18:12:03 1.17
@@ -655,14 +655,15 @@
java.io.FileNotFoundException,
java.io.IOException
{
- Locale locale = getLocale(processor, contextNode);
+ // Patch from Steven Serocki
+ Locale locale = (Locale)getLocale(processor, contextNode).clone();
// Helper to format local specific numbers to strings.
DecimalFormat formatter;
- synchronized(locale)
- {
+ //synchronized(locale)
+ //{
formatter = (DecimalFormat)NumberFormat.getNumberInstance(locale);
- }
+ //}
String digitGroupSepValue = (null != m_groupingSeparator_avt)
? m_groupingSeparator_avt.evaluate(processor.getExecContext(),