[oe-commits] org.oe.dev classpath: Added missing patch file decimalformat.patch .
thebohemian commit
oe at amethyst.openembedded.net
Thu Sep 4 08:17:22 UTC 2008
classpath: Added missing patch file decimalformat.patch .
Author: thebohemian at openembedded.org
Branch: org.openembedded.dev
Revision: 01fd906254b3838521badd31e6b686d8faa0c99a
ViewMTN: http://monotone.openembedded.org/revision/info/01fd906254b3838521badd31e6b686d8faa0c99a
Files:
1
packages/classpath/files/decimalformat.patch
Diffs:
#
# mt diff -rc86f58aa5b8c61d705973ed119cf32df2237c959 -r01fd906254b3838521badd31e6b686d8faa0c99a
#
#
#
# add_file "packages/classpath/files/decimalformat.patch"
# content [9bb1d10f056daf0875603e27fba7c95ac5541b0d]
#
============================================================
--- packages/classpath/files/decimalformat.patch 9bb1d10f056daf0875603e27fba7c95ac5541b0d
+++ packages/classpath/files/decimalformat.patch 9bb1d10f056daf0875603e27fba7c95ac5541b0d
@@ -0,0 +1,31 @@
+Index: classpath-0.97.2/java/text/DecimalFormat.java
+===================================================================
+--- classpath-0.97.2.orig/java/text/DecimalFormat.java
++++ classpath-0.97.2/java/text/DecimalFormat.java
+@@ -1296,7 +1296,7 @@ public class DecimalFormat extends Numbe
+ currencySymbol = this.symbols.getCurrencySymbol();
+
+ // if \u00A4 is doubled, we use the international currency symbol
+- if (i < len && pattern.charAt(i + 1) == '\u00A4')
++ if ((i + 1) < len && pattern.charAt(i + 1) == '\u00A4')
+ {
+ currencySymbol = this.symbols.getInternationalCurrencySymbol();
+ i++;
+@@ -1320,7 +1320,7 @@ public class DecimalFormat extends Numbe
+ else if (ch == '\'')
+ {
+ // QUOTE
+- if (i < len && pattern.charAt(i + 1) == '\'')
++ if ((i + 1) < len && pattern.charAt(i + 1) == '\'')
+ {
+ // we need to add ' to the buffer
+ buffer.append(ch);
+@@ -1692,7 +1692,7 @@ public class DecimalFormat extends Numbe
+ else if (ch == '\'')
+ {
+ // QUOTE
+- if (i < len && pattern.charAt(i + 1) == '\'')
++ if ((i + 1) < len && pattern.charAt(i + 1) == '\'')
+ {
+ // we need to add ' to the buffer
+ buffer.append(ch);
More information about the Openembedded-commits
mailing list