packages xerces-j202-jdk5.patch
      Pages: < 1 >  DOWNLOAD      
diff -Nru xerces-j2-2.0.2/src/org/apache/xerces/impl/XMLDTDScannerImpl.java xerces-j2-2.0.2-gil/src/org/apache/xerces/impl/XMLDTDScannerImpl.java
--- xerces-j2-2.0.2/src/org/apache/xerces/impl/XMLDTDScannerImpl.java	2002-06-14 01:04:14.000000000 +0200
+++ xerces-j2-2.0.2-gil/src/org/apache/xerces/impl/XMLDTDScannerImpl.java	2010-02-27 15:46:24.000000000 +0100
@@ -1106,21 +1106,21 @@
 
             // call handler
             if (fDTDHandler != null) {
-                String[] enum = null;
+                String[] mune = null;
                 if (fEnumerationCount != 0) {
-                    enum = new String[fEnumerationCount];
-                    System.arraycopy(fEnumeration, 0, enum,
+                    mune = new String[fEnumerationCount];
+                    System.arraycopy(fEnumeration, 0, mune,
                                      0, fEnumerationCount);
                 }
                 // Determine whether the default value to be passed should be null. 
                 // REVISIT: should probably check whether fLiteral.ch is null instead. LM.
                 if (defaultType!=null && (defaultType.equals("#REQUIRED") || 
                                           defaultType.equals("#IMPLIED"))) {
-                    fDTDHandler.attributeDecl(elName, name, type, enum,
+                    fDTDHandler.attributeDecl(elName, name, type, mune,
                                               defaultType, null, null, null);
                 }
                 else {
-                    fDTDHandler.attributeDecl(elName, name, type, enum,
+                    fDTDHandler.attributeDecl(elName, name, type, mune,
                                               defaultType, fLiteral, fLiteral2, null);
                 }
             }
diff -Nru xerces-j2-2.0.2/src/org/apache/xerces/impl/xs/traversers/XSAttributeChecker.java xerces-j2-2.0.2-gil/src/org/apache/xerces/impl/xs/traversers/XSAttributeChecker.java
--- xerces-j2-2.0.2/src/org/apache/xerces/impl/xs/traversers/XSAttributeChecker.java	2002-05-16 20:25:56.000000000 +0200
+++ xerces-j2-2.0.2-gil/src/org/apache/xerces/impl/xs/traversers/XSAttributeChecker.java	2010-02-27 15:48:52.000000000 +0100
@@ -1513,11 +1513,11 @@
     // REVISIT: pass the proper element node to reportSchemaError
     public void checkNonSchemaAttributes(XSGrammarBucket grammarBucket) {
         // for all attributes
-        Enumeration enum = fNonSchemaAttrs.keys();
+        Enumeration mune = fNonSchemaAttrs.keys();
         XSAttributeDecl attrDecl;
-        while (enum.hasMoreElements()) {
+        while (mune.hasMoreElements()) {
             // get name, uri, localpart
-            String attrRName = (String)enum.nextElement();
+            String attrRName = (String)mune.nextElement();
             String attrURI = attrRName.substring(0,attrRName.indexOf(','));
             String attrLocal = attrRName.substring(attrRName.indexOf(',')+1);
             // find associated grammar
@@ -1724,9 +1724,9 @@
 
         int count = attrList.size();
         this.attrArray = new OneAttr[count];
-        Enumeration enum = attrList.elements();
+        Enumeration mune = attrList.elements();
         for (int i = 0; i < count; i++)
-            this.attrArray[i] = (OneAttr)enum.nextElement();
+            this.attrArray[i] = (OneAttr)mune.nextElement();
 
         this.allowNonSchemaAttr = allowNonSchemaAttr;
     }
diff -Nru xerces-j2-2.0.2/src/org/apache/xerces/impl/xs/XSGrammarBucket.java xerces-j2-2.0.2-gil/src/org/apache/xerces/impl/xs/XSGrammarBucket.java
--- xerces-j2-2.0.2/src/org/apache/xerces/impl/xs/XSGrammarBucket.java	2002-06-11 21:22:57.000000000 +0200
+++ xerces-j2-2.0.2-gil/src/org/apache/xerces/impl/xs/XSGrammarBucket.java	2010-02-27 15:47:52.000000000 +0100
@@ -180,10 +180,10 @@
         int count = fGrammarRegistry.size() + (fNoNSGrammar==null ? 0 : 1);
         SchemaGrammar[] grammars = new SchemaGrammar[count];
         // get grammars with target namespace
-        Enumeration enum = fGrammarRegistry.elements();
+        Enumeration mune = fGrammarRegistry.elements();
         int i = 0;
-        while (enum.hasMoreElements())
-            grammars[i++] = (SchemaGrammar)enum.nextElement();
+        while (mune.hasMoreElements())
+            grammars[i++] = (SchemaGrammar)mune.nextElement();
         // add the grammar without target namespace, if any
         if (fNoNSGrammar != null)
             grammars[count-1] = fNoNSGrammar;
diff -Nru xerces-j2-2.0.2/src/org/apache/xerces/util/AugmentationsImpl.java xerces-j2-2.0.2-gil/src/org/apache/xerces/util/AugmentationsImpl.java
--- xerces-j2-2.0.2/src/org/apache/xerces/util/AugmentationsImpl.java	2002-06-04 18:51:14.000000000 +0200
+++ xerces-j2-2.0.2-gil/src/org/apache/xerces/util/AugmentationsImpl.java	2010-02-27 15:49:45.000000000 +0100
@@ -310,10 +310,10 @@
         public String toString() {
             StringBuffer buff = new StringBuffer();
             buff.append("LargeContainer");
-            Enumeration enum = fAugmentations.keys();
+            Enumeration mune = fAugmentations.keys();
 
-            while (enum.hasMoreElements()) {
-                Object key = enum.nextElement();
+            while (mune.hasMoreElements()) {
+                Object key = mune.nextElement();
                 buff.append("\nkey == ");
                 buff.append(key);
                 buff.append("; value == ");
diff -Nru xerces-j2-2.0.2/src/org/apache/xml/serialize/HTMLSerializer.java xerces-j2-2.0.2-gil/src/org/apache/xml/serialize/HTMLSerializer.java
--- xerces-j2-2.0.2/src/org/apache/xml/serialize/HTMLSerializer.java	2002-01-29 02:15:21.000000000 +0100
+++ xerces-j2-2.0.2-gil/src/org/apache/xml/serialize/HTMLSerializer.java	2010-02-27 15:50:42.000000000 +0100
@@ -339,12 +339,12 @@
                 preserveSpace = true;
 
             if ( addNSAttr ) {
-                Enumeration enum;
+                Enumeration mune;
 
-                enum = _prefixes.keys();
-                while ( enum.hasMoreElements() ) {
+                mune = _prefixes.keys();
+                while ( mune.hasMoreElements() ) {
                     _printer.printSpace();
-                    value = (String) enum.nextElement();
+                    value = (String) mune.nextElement();
                     name = (String) _prefixes.get( value );
                     if ( name.length() == 0 ) {
                         _printer.printText( "xmlns=\"" );
diff -Nru xerces-j2-2.0.2/src/org/apache/xml/serialize/XMLSerializer.java xerces-j2-2.0.2-gil/src/org/apache/xml/serialize/XMLSerializer.java
--- xerces-j2-2.0.2/src/org/apache/xml/serialize/XMLSerializer.java	2002-06-12 02:27:47.000000000 +0200
+++ xerces-j2-2.0.2-gil/src/org/apache/xml/serialize/XMLSerializer.java	2010-02-27 15:55:33.000000000 +0100
@@ -353,12 +353,12 @@
             }
 
             if (_prefixes != null) {
-                Enumeration enum;
+                Enumeration mune;
 
-                enum = _prefixes.keys();
-                while (enum.hasMoreElements()) {
+                mune = _prefixes.keys();
+                while (mune.hasMoreElements()) {
                     _printer.printSpace();
-                    value = (String) enum.nextElement();
+                    value = (String) mune.nextElement();
                     name = (String) _prefixes.get( value );
                     if (name.length() == 0) {
                         _printer.printText( "xmlns=\"" );