Bug 3487 - jdk 1.4 beta2 compatibility
Summary: jdk 1.4 beta2 compatibility
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.17
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-09-07 05:30 UTC by fred
Modified: 2012-04-01 06:28 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fred 2001-09-07 05:30:12 UTC
If I compile xml-fop (from cvs) with JDK 1.4 beta2, I get the following error:

     [echo] Compiling the sources 
    [javac] Compiling 4 source files to /hoth/local/xml-fop/build/classes
    [javac] Note: sun.tools.javac.Main has been deprecated.
    [javac] 
/hoth/local/xml-fop/build/src/org/apache/fop/svg/PDFGraphics2D.java:1128: nested 
class org.apache.fop.svg.PDFGraphics2D. PDFGraphicsConfiguration is an abstract 
class. It can't be instantiated.
    [javac]         return new PDFGraphicsConfiguration();
    [javac]                ^
    [javac] 
/hoth/local/xml-fop/build/src/org/apache/fop/svg/PDFGraphics2D.java:1135: 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 {

It appears that Sun added a new java.awt.VolatileImage class and added a new
abstract method createCompatibleVolatileImage to GraphicsConfiguration which
PDFGraphicsConfiguration extends.  I am not sure what the fix should be since
fixing the code to compile with JDK 1.4 will cause it to break with previous
releases.
Comment 1 Christian Geisert 2002-09-16 17:37:18 UTC
This is fixed in cvs (mainntenance branch) with some ant filter magic
Comment 2 Glenn Adams 2012-04-01 06:28:04 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed