You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Peter Haight <pe...@sapros.com> on 2001/01/20 23:50:50 UTC

Patch to get FO2PDFFormatter.java to work with Java 1.1.8

I'm not much of a Java programmer, but on FreeBSD all the Cocoon stuff uses
jdk-1.1.8 and you need to apply this patch to get Cocoon-1.8.1 to compile.


--- src/org/apache/cocoon/formatter/FO2PDFFormatter.java.orig	Sat Jan 20 14:43:20 2001
+++ src/org/apache/cocoon/formatter/FO2PDFFormatter.java	Sat Jan 20 14:44:59 2001
@@ -91,7 +91,7 @@
            i = vn.indexOf ('.');
            if (i != -1) i = vn.indexOf ('.', i + 1);
            if (i != -1) vn = vn.substring (0, i);
-           FOP_VERSION_NO = Double.parseDouble (vn);
+           FOP_VERSION_NO = Double.valueOf (vn).doubleValue ();
         }
         catch (Exception ex) {
            FOP_VERSION_NO = UNKNOWN_VERSION;

Re: Patch to get FO2PDFFormatter.java to work with Java 1.1.8

Posted by Donald Ball <ba...@webslingerZ.com>.
On Sat, 20 Jan 2001, Peter Haight wrote:

> I'm not much of a Java programmer, but on FreeBSD all the Cocoon stuff uses
> jdk-1.1.8 and you need to apply this patch to get Cocoon-1.8.1 to compile.

patched, with thanks.

- donald