aboutsummaryrefslogtreecommitdiff
path: root/textproc/xpp3
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2006-04-15 00:27:56 +0000
committerHerve Quiroz <hq@FreeBSD.org>2006-04-15 00:27:56 +0000
commitaee7dffd3fa345a5b020d533c6c97b0bd354e4a9 (patch)
treec16e03628b253979d90cdeb2696a2bf659c1b494 /textproc/xpp3
parent9678ac98669db37961dd335816b1bc41b233cf03 (diff)
downloadports-aee7dffd3fa345a5b020d533c6c97b0bd354e4a9.tar.gz
ports-aee7dffd3fa345a5b020d533c6c97b0bd354e4a9.zip
Notes
Diffstat (limited to 'textproc/xpp3')
-rw-r--r--textproc/xpp3/files/patch-java1.538
1 files changed, 38 insertions, 0 deletions
diff --git a/textproc/xpp3/files/patch-java1.5 b/textproc/xpp3/files/patch-java1.5
new file mode 100644
index 000000000000..a87c0c025e16
--- /dev/null
+++ b/textproc/xpp3/files/patch-java1.5
@@ -0,0 +1,38 @@
+$FreeBSD$
+
+With Java 1.5, 'enum' is a keyword
+
+--- src/java/xpath/org/xmlpull/v1/builder/xpath/jaxen/function/ext/LocaleFunctionSupport.java.orig Sat Apr 15 02:21:03 2006
++++ src/java/xpath/org/xmlpull/v1/builder/xpath/jaxen/function/ext/LocaleFunctionSupport.java Sat Apr 15 02:21:40 2006
+@@ -130,24 +130,24 @@
+ * be found
+ */
+ protected Locale findLocale(String localeText) {
+- StringTokenizer enum = new StringTokenizer( localeText, "-" );
+- if (enum.hasMoreTokens())
++ StringTokenizer _enum = new StringTokenizer( localeText, "-" );
++ if (_enum.hasMoreTokens())
+ {
+- String language = enum.nextToken();
+- if (! enum.hasMoreTokens())
++ String language = _enum.nextToken();
++ if (! _enum.hasMoreTokens())
+ {
+ return findLocaleForLanguage(language);
+ }
+ else
+ {
+- String country = enum.nextToken();
+- if (! enum.hasMoreTokens())
++ String country = _enum.nextToken();
++ if (! _enum.hasMoreTokens())
+ {
+ return new Locale(language, country);
+ }
+ else
+ {
+- String variant = enum.nextToken();
++ String variant = _enum.nextToken();
+ return new Locale(language, country, variant);
+ }
+ }