xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r582230 - in /xmlgraphics/fop/trunk: src/java/org/apache/fop/render/PrintRendererConfigurator.java status.xml
Date Fri, 05 Oct 2007 12:34:35 GMT
Author: jeremias
Date: Fri Oct  5 05:34:33 2007
New Revision: 582230

URL: http://svn.apache.org/viewvc?rev=582230&view=rev
Log:
Bugzilla #43464:
There is no need to cast the sources into a StreamSource to determine
the SystemId. With this cast DOMSources or other non-StreamSources lead in a
ClassCastException.
Submitted by: Bruno Feurer <dev.at.brunof.com>

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java
    xmlgraphics/fop/trunk/status.xml

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java?rev=582230&r1=582229&r2=582230&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java Fri
Oct  5 05:34:33 2007
@@ -25,7 +25,7 @@
 import java.util.Iterator;
 import java.util.List;
 
-import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.Source;
 
 import org.apache.avalon.framework.configuration.Configuration;
 import org.apache.avalon.framework.configuration.ConfigurationException;
@@ -247,7 +247,7 @@
             return null;
         }
         if (embedUrl != null) {
-            StreamSource source = (StreamSource)fontResolver.resolve(embedUrl);
+            Source source = fontResolver.resolve(embedUrl);
             if (source == null) {
                 LogUtil.handleError(log,
                         "Failed to resolve font with embed-url '" + embedUrl + "'", strict);
@@ -256,7 +256,7 @@
             embedUrl = source.getSystemId(); // absolute path/url
         }
         if (metricsUrl != null) {
-            StreamSource source = (StreamSource)fontResolver.resolve(metricsUrl);
+            Source source = fontResolver.resolve(metricsUrl);
             if (source == null) {
                 LogUtil.handleError(log,
                         "Failed to resolve font with metric-url '" + metricsUrl + "'", strict);

Modified: xmlgraphics/fop/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?rev=582230&r1=582229&r2=582230&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Fri Oct  5 05:34:33 2007
@@ -28,6 +28,9 @@
 
   <changes>
     <release version="FOP Trunk">
+      <action context="Code" dev="JM" type="fix" fixes-bug="43464" due-to="Bruno Feurer">
+        Fix to avoid a ClassCastException in renderer configuration.
+      </action>
       <action context="Code" dev="JM" type="fix" fixes-bug="43439" due-to="Adrian Cumiskey">
         Fixed the restoration of the TLE values from the intermediate format 
         for the AFP extension elements.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message