Bug 18986 - PDFGraphicsConfiguration error on build?
Summary: PDFGraphicsConfiguration error on build?
Status: CLOSED WORKSFORME
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.4
Hardware: Sun Solaris
: P1 blocker
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-14 06:31 UTC by Ozhan
Modified: 2012-04-01 13:51 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ozhan 2003-04-14 06:31:42 UTC
Hi,

I am getting the following build error while trying to compile FOP. I haven't 
made any changes to the core code. It's the first time compiling.

Regards,
Ozhan

----

compile:
     [echo] Compiling the sources 
    [javac] Compiling 439 source files to /home/test/FOP/source/fop-
0.20.4/build/classes
    [javac] Note: sun.tools.javac.Main has been deprecated.
    [javac] /home/test/FOP/source/fop-
0.20.4/build/src/org/apache/fop/svg/PDFGraphics2D.java:1199: nested class 
org.apache.fop.svg.PDFGraphics2D. PDFGraphicsConfiguration is an abstract 
class. It can't be instantiated.
    [javac]         return new PDFGraphicsConfiguration();
    [javac]                ^
    [javac] /home/test/FOP/source/fop-
0.20.4/build/src/org/apache/fop/svg/PDFGraphics2D.java:1206: nested class 
org.apache.fop.svg.PDFGraphics2D. PDFGraphicsConfiguration must be declared 
abstract. It does not define java.awt.image.VolatileImage 
createCompatibleVolatileImage(int, int) from class 
java.awt.GraphicsConfiguration.
    [javac]     static class PDFGraphicsConfiguration extends 
GraphicsConfiguration {
    [javac]                  ^
    [javac] 2 errors, 1 warning

BUILD FAILED

/home/test/FOP/source/fop-0.20.4/build.xml:579: Compile failed, messages should 
have been provided.
Comment 1 Jeremias Maerki 2003-04-14 06:59:00 UTC
See the release notes for 0.20.4:
http://xml.apache.org/fop/relnotes.html#FOP+0.20.4

> Building under JDK 1.4: You need to add a method in
> src/org/apache/fop/svg/PDFGraphics2D.java (search 
> for jdk1.4 and remove the comments) 

This step is not necessary anymore with more recent version of FOP.
Comment 2 Glenn Adams 2012-04-01 13:51:49 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs