From: Manuel Mall Date: Fri, 11 Nov 2005 15:38:42 +0000 (+0000) Subject: Minor corrections for jdk 1.3.1 compatibility X-Git-Tag: fop-0_90-alpha1~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7af60c6d3de5fa2a3b200e6a46f756f3cfd961a2;p=xmlgraphics-fop.git Minor corrections for jdk 1.3.1 compatibility git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332584 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java index 50281ef44..85474abfd 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java @@ -609,9 +609,9 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager //Rendering all parts (not just the first) at once for the case where the parts that //overflow should be visible. //TODO Check if this has any unwanted side-effects. Feels a bit like a hack. - addAreas(this.deferredAlg, - /*1*/ this.deferredAlg.getPageBreaks().size(), - this.deferredOriginalList, this.deferredEffectiveList); + this.addAreas(this.deferredAlg, + /*1*/ this.deferredAlg.getPageBreaks().size(), + this.deferredOriginalList, this.deferredEffectiveList); } } diff --git a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java index 34da18505..6a8608955 100644 --- a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java @@ -321,7 +321,7 @@ public class StaticContentLayoutManager extends BlockStackingLayoutManager { protected void doPhase3(PageBreakingAlgorithm alg, int partCount, BlockSequence originalList, BlockSequence effectiveList) { //Directly add areas after finding the breaks - addAreas(alg, partCount, originalList, effectiveList); + this.addAreas(alg, partCount, originalList, effectiveList); if (partCount > 1) { overflow = true; } diff --git a/test/java/org/apache/fop/visual/BatchDiffer.java b/test/java/org/apache/fop/visual/BatchDiffer.java index ae0d1a5fc..71d6ebb60 100644 --- a/test/java/org/apache/fop/visual/BatchDiffer.java +++ b/test/java/org/apache/fop/visual/BatchDiffer.java @@ -159,7 +159,8 @@ public class BatchDiffer { context.setTemplates(context.getTransformerFactory().newTemplates( new StreamSource(xslt))); } catch (TransformerConfigurationException e) { - throw new RuntimeException("Error setting up stylesheet", e); + // throw new RuntimeException("Error setting up stylesheet", e); // This is JDK 1.4 or later specific + throw new RuntimeException("Error setting up stylesheet"); } } BitmapProducer[] producers = getProducers(cfg.getChild("producers")); @@ -251,7 +252,8 @@ public class BatchDiffer { producers[i] = (BitmapProducer)clazz.newInstance(); ContainerUtil.configure(producers[i], children[i]); } catch (Exception e) { - throw new RuntimeException("Error while setting up producers", e); + // throw new RuntimeException("Error while setting up producers", e); // This is JDK 1.4 or later specific + throw new RuntimeException("Error while setting up producers"); } } return producers;