Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-548

[PATCH] Ambiguous constructor call error in RhinoClassLoader with JDK 1.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.5
    • None
    • Scripting
    • None
    • Operating System: other
      Platform: Other

    Description

      JDK 1.5 has introduced a new constructor for CodeSource, so the constructor call
      in line 71 of RhinoClassLoader.java is ambiguous. The following patch fixes this.

      Index: org/apache/batik/script/rhino/RhinoClassLoader.java
      ===================================================================
      RCS file:
      /home/cvspublic/xml-batik/sources/org/apache/batik/script/rhino/RhinoClassLoader.java,v
      retrieving revision 1.10
      diff -u -r1.10 RhinoClassLoader.java
      — org/apache/batik/script/rhino/RhinoClassLoader.java 18 Aug 2004 07:14:57
      -0000 1.10
      +++ org/apache/batik/script/rhino/RhinoClassLoader.java 7 Apr 2005 23:09:21 -0000
      @@ -29,6 +29,7 @@
      import java.security.PermissionCollection;
      import java.security.ProtectionDomain;
      import java.security.PrivilegedAction;
      +import java.security.cert.Certificate;

      import org.mozilla.javascript.GeneratedClassLoader;

      @@ -68,7 +69,7 @@
      parent);
      this.documentURL = documentURL;
      if (documentURL != null)

      { - codeSource = new CodeSource(documentURL, null); + codeSource = new CodeSource(documentURL, (Certificate[])null); }

      //

      Attachments

        1. patch.txt
          0.9 kB
          Jochen Kuhnle

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            werbung@kuhnle.net Jochen Kuhnle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: