You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by gm...@apache.org on 2004/04/23 05:05:11 UTC
cvs commit: xml-fop/src/java/org/apache/fop/pdf PDFFactory.java PDFObject.java PDFPages.java
gmazza 2004/04/22 20:05:11
Modified: src/java/org/apache/fop/pdf PDFFactory.java PDFObject.java
PDFPages.java
Log:
Logger "LogFactory.getLog(PDFObject.class.getPackage().getName())" was
causing null pointer exceptions when the Ant task is run (although not with
command-line usage); switched to "LogFactory.getLog(PDFObject.class.getName())",
which works for both command-line and Ant task.
Revision Changes Path
1.12 +1 -1 xml-fop/src/java/org/apache/fop/pdf/PDFFactory.java
Index: PDFFactory.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/pdf/PDFFactory.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- PDFFactory.java 22 Apr 2004 21:38:39 -0000 1.11
+++ PDFFactory.java 23 Apr 2004 03:05:11 -0000 1.12
@@ -92,7 +92,7 @@
* @return a new PDF Pages object for adding pages to
*/
public PDFPages makePages() {
- PDFPages pdfPages = new PDFPages(++this.document.objectcount);
+ PDFPages pdfPages = new PDFPages(++(this.document.objectcount));
getDocument().addTrailerObject(pdfPages);
return pdfPages;
}
1.6 +1 -8 xml-fop/src/java/org/apache/fop/pdf/PDFObject.java
Index: PDFObject.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/pdf/PDFObject.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- PDFObject.java 3 Apr 2004 08:30:08 -0000 1.5
+++ PDFObject.java 23 Apr 2004 03:05:11 -0000 1.6
@@ -37,7 +37,7 @@
public abstract class PDFObject {
/** logger for all PDFObjects (and descendants) */
- protected static Log log = LogFactory.getLog(PDFObject.class.getPackage().getName());
+ protected static Log log = LogFactory.getLog(PDFObject.class.getName());
/**
* the object's number
@@ -53,13 +53,6 @@
* the parent PDFDocument
*/
private PDFDocument document;
-
- /**
- * Create a PDFObject
- */
- public PDFObject() {
- // do nothing
- }
/**
* Returns the object's number.
1.4 +0 -1 xml-fop/src/java/org/apache/fop/pdf/PDFPages.java
Index: PDFPages.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/pdf/PDFPages.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PDFPages.java 27 Feb 2004 17:50:31 -0000 1.3
+++ PDFPages.java 23 Apr 2004 03:05:11 -0000 1.4
@@ -54,7 +54,6 @@
* @param objnum the object's number
*/
public PDFPages(int objnum) {
- super();
setObjectNumber(objnum);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org