changeset 399:499be952a291 jdk8-b71

Merge
author lana
date Fri, 28 Dec 2012 18:31:52 -0800
parents 63815efd132f d4aea0225e80
children bdf2af722a6b 47738fa4d411
files
diffstat 7 files changed, 12 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java	Thu Dec 27 12:15:03 2012 -0800
+++ b/src/com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java	Fri Dec 28 18:31:52 2012 -0800
@@ -1005,7 +1005,7 @@
     {
       Class clazz = ObjectFactory.findProviderClass(DOM_CLASS, true);
 
-      Method method = clazz.getMethod(DOM_LEVEL3_METHOD, null);
+      Method method = clazz.getMethod(DOM_LEVEL3_METHOD, (Class<?>[])null);
 
       // If we succeeded, we have loaded interfaces from a
       //  level 3 DOM somewhere
--- a/src/com/sun/org/apache/xerces/internal/impl/Version.java	Thu Dec 27 12:15:03 2012 -0800
+++ b/src/com/sun/org/apache/xerces/internal/impl/Version.java	Fri Dec 28 18:31:52 2012 -0800
@@ -74,7 +74,7 @@
 
     /** Version string.
      * @deprecated  getVersion() should be used instead.  */
-    public static String fVersion = "Xerces-J 2.7.1";
+    public static final String fVersion = getVersion();
 
     private static final String fImmutableVersion = "Xerces-J 2.7.1";
 
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java	Thu Dec 27 12:15:03 2012 -0800
+++ b/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java	Fri Dec 28 18:31:52 2012 -0800
@@ -193,9 +193,12 @@
                 null,
     };
 
-    protected static final char [] cdata = {'[','C','D','A','T','A','['};
-    protected static final char [] xmlDecl = {'<','?','x','m','l'};
-    protected static final char [] endTag = {'<','/'};
+    private static final char [] cdata = {'[','C','D','A','T','A','['};
+    private static final char [] endTag = {'<','/'};
+
+    //this variable is also used by XMLDocumentScannerImpl in the same package
+    static final char [] xmlDecl = {'<','?','x','m','l'};
+
     // debugging
 
     /** Debug scanner state. */
--- a/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java	Thu Dec 27 12:15:03 2012 -0800
+++ b/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java	Fri Dec 28 18:31:52 2012 -0800
@@ -71,7 +71,7 @@
     /** Listeners which should know when load is being called */
     private Vector listeners = new Vector();
 
-    public static final boolean [] VALID_NAMES = new boolean[127];
+    private static final boolean [] VALID_NAMES = new boolean[127];
 
     /**
      * Debug printing of buffer. This debugging flag works best when you
--- a/src/javax/xml/transform/FactoryFinder.java	Thu Dec 27 12:15:03 2012 -0800
+++ b/src/javax/xml/transform/FactoryFinder.java	Fri Dec 28 18:31:52 2012 -0800
@@ -210,7 +210,7 @@
                 providerClass.getDeclaredMethod(
                     "newTransformerFactoryNoServiceLoader"
                 );
-                return creationMethod.invoke(null, null);
+                return creationMethod.invoke(null, (Object[])null);
             } catch (NoSuchMethodException exc) {
                 return null;
             } catch (Exception exc) {
--- a/src/javax/xml/validation/SchemaFactoryFinder.java	Thu Dec 27 12:15:03 2012 -0800
+++ b/src/javax/xml/validation/SchemaFactoryFinder.java	Fri Dec 28 18:31:52 2012 -0800
@@ -357,7 +357,7 @@
                 providerClass.getDeclaredMethod(
                     "newXMLSchemaFactoryNoServiceLoader"
                 );
-                return creationMethod.invoke(null, null);
+                return creationMethod.invoke(null, (Object[])null);
             } catch (NoSuchMethodException exc) {
                 return null;
             } catch (Exception exc) {
--- a/src/javax/xml/xpath/XPathFactoryFinder.java	Thu Dec 27 12:15:03 2012 -0800
+++ b/src/javax/xml/xpath/XPathFactoryFinder.java	Fri Dec 28 18:31:52 2012 -0800
@@ -333,7 +333,7 @@
                 providerClass.getDeclaredMethod(
                     "newXPathFactoryNoServiceLoader"
                 );
-                return creationMethod.invoke(null, null);
+                return creationMethod.invoke(null, (Object[])null);
             } catch (NoSuchMethodException exc) {
                 return null;
             } catch (Exception exc) {