diff options
author | Karen Lease <klease@apache.org> | 2000-11-14 23:17:47 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2000-11-14 23:17:47 +0000 |
commit | d03ee13a49a09d14710c8d00cf861062cfc5fc86 (patch) | |
tree | dfeb52e23a7130c9be9c7c51228f689f72a6f4dc | |
parent | 6310403471690b5ddb7ddc6288e70f86dc602a9f (diff) | |
download | xmlgraphics-fop-d03ee13a49a09d14710c8d00cf861062cfc5fc86.tar.gz xmlgraphics-fop-d03ee13a49a09d14710c8d00cf861062cfc5fc86.zip |
Use MessageHandler. Handle unrecognized compound properties.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193804 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/org/apache/fop/fo/Property.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/Property.java b/src/org/apache/fop/fo/Property.java index b1a2df24d..7cb55135d 100644 --- a/src/org/apache/fop/fo/Property.java +++ b/src/org/apache/fop/fo/Property.java @@ -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; } |