]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Use MessageHandler. Handle unrecognized compound properties.
authorKaren Lease <klease@apache.org>
Tue, 14 Nov 2000 23:17:47 +0000 (23:17 +0000)
committerKaren Lease <klease@apache.org>
Tue, 14 Nov 2000 23:17:47 +0000 (23:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193804 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/Property.java

index b1a2df24dc7ccf5b91bdb13dd932887a76db74e5..7cb55135d8355e3b8c550c5a1a41f978531d86c8 100644 (file)
@@ -50,6 +50,7 @@
  */
 package org.apache.fop.fo;
 
+import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.datatypes.*;
 import org.apache.fop.fo.expr.Numeric;
 import org.apache.fop.fo.expr.PropertyParser;
@@ -163,7 +164,10 @@ public class Property {
          return setSubprop(baseProp, partName, p);
        }
       }
-      return null;
+      else {
+       MessageHandler.errorln("WARNING: compound property component " + partName + " unknown.");
+      }
+      return baseProp;
     }
 
     /**
@@ -208,7 +212,7 @@ public class Property {
          pret.setSpecifiedValue(pvalue);
        return pret;
       } catch (org.apache.fop.fo.expr.PropertyException propEx) {
-       System.err.println("Error in " + propName + " property value: "
+       MessageHandler.errorln("Error in " + propName + " property value: "
                           + propEx);
        throw new FOPException("Property error");
       }
@@ -295,7 +299,7 @@ public class Property {
            try {
              return make(propertyList, specVal, null);
            } catch (FOPException e) {
-             System.err.println("Error computing property value for " +
+             MessageHandler.errorln("Error computing property value for " +
                                 propName + " from " + specVal);
              return null;
            }