xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51791] New: lots of deprecation warnings
Date Fri, 09 Sep 2011 11:08:14 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51791

             Bug #: 51791
           Summary: lots of deprecation warnings
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: documentation
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: ne01026@shark.2a.pl
    Classification: Unclassified


Building FOP results in lots of warnings related to using deprecated interfaces
like the following one:

    [javac]
/usr/src/packages/BUILD/fop-1.0/src/java/org/apache/fop/render/AbstractGraphics2DAdapter.java:151:
warning: [deprecation] org.apache.fop.render.Graphics2DImagePainter in
org.apache.fop.render has been deprecated
    [javac]     public void paintImage(Graphics2DImagePainter painter,
    [javac]                            ^

This warnings would not appear when compiled under JDK 1.4.2 because

Note: A deprecation warning is suppressed if the compilation unit containing
the deprecation is being compiled at the same time as the compilation unit
using the deprecated class or member. This allows legacy APIs to be built
without warnings. There currently is no other way to suppress the deprecation
warnings. 

<URL:
http://download.oracle.com/javase/1.4.2/docs/guide/misc/deprecation/deprecation.html
>

This legacy compatibility feature has apparently been discontinued by later
releases of the JDK (even though the compilation runs in 1.4.2 mode).

This bug is fixed in the trunk by deprecating the calling method itself, and
described here for reference only:

<URL:
http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/AbstractGraphics2DAdapter.java
>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Mime
View raw message