https://issues.apache.org/bugzilla/show_bug.cgi?id=49061

           Summary: ClassCastException using
                    org.apache.batik.swing.JSVGCanvas.setDocument
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SVG DOM
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=25239)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25239)
Netbeans 6.8 project

If the document is set to one with a different implementation, an exception is
thrown, for example:
Document d =
DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(FILENAME);
JSVGCanvas canvas = new JSVGCanvas();
canvas.setDocument(d);
Gives an exception:
Exception in thread "main" java.lang.ClassCastException:
org.apache.batik.dom.GenericElement cannot be cast to
org.w3c.dom.svg.SVGSVGElement
Example project attached.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to