aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Mall <manuel@apache.org>2005-11-11 15:38:42 +0000
committerManuel Mall <manuel@apache.org>2005-11-11 15:38:42 +0000
commit7af60c6d3de5fa2a3b200e6a46f756f3cfd961a2 (patch)
treea6d96b38cf38b8fadfc902283185c512ee1e666c
parent077ff96c5b5e8013f8c37eca140b351070cacd81 (diff)
downloadxmlgraphics-fop-7af60c6d3de5fa2a3b200e6a46f756f3cfd961a2.tar.gz
xmlgraphics-fop-7af60c6d3de5fa2a3b200e6a46f756f3cfd961a2.zip
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
-rw-r--r--src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java6
-rw-r--r--src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java2
-rw-r--r--test/java/org/apache/fop/visual/BatchDiffer.java6
3 files changed, 8 insertions, 6 deletions
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;