From d03ee13a49a09d14710c8d00cf861062cfc5fc86 Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Tue, 14 Nov 2000 23:17:47 +0000 Subject: [PATCH] Use MessageHandler. Handle unrecognized compound properties. 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 | 10 +++++++--- 1 file 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; } -- 2.39.5