Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-83

GraphicContext.setRenderingHint() does not accept null as value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Critical
    • Resolution: Unresolved
    • 2.6
    • None
    • java2D
    • None

    Description

      A common behaviour is to call Graphics2D.setRenderingHint(key, value) with a null value to reset it to the default. However, the current implementation in org.apache.xmlgraphics.java2d.GraphicContext does not accept null as value and throws a IllegalArgumentException. See https://issues.apache.org/jira/browse/BATIK-1043 for more information about this issue.

      A patch will follow...

      Attachments

        1. xmlgraphics-commons.patch
          0.6 kB
          Luc Girardin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              luc.girardin Luc Girardin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: