Author: mrglavas
Date: Tue Nov 10 18:46:14 2009
New Revision: 834594
URL: http://svn.apache.org/viewvc?rev=834594&view=rev
Log:
Fixing compilation errors on Java SE 1.4 and below. Character.toLowerCase(int)
and Character.toUpperCase(int) didn't exist until Java SE 5.
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java?rev=834594&r1=834593&r2=834594&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xpath/regex/CaseInsensitiveMap.java
Tue Nov 10 18:46:14 2009
@@ -64,8 +64,8 @@
int lc, uc;
for (int i=0; i<0x10000; i++) {
- lc = Character.toLowerCase(i);
- uc = Character.toUpperCase(i);
+ lc = Character.toLowerCase((char) i);
+ uc = Character.toUpperCase((char) i);
// lower/upper case value is not the same as code point
if (lc != uc || lc != i) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]