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

GraphicContext.setRenderingHint() does not accept null as value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: java2D
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: