Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1043

GraphicContext.setRenderingHint() does not accept null as value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: SVGGraphics2D
    • 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.batik.ext.awt.g2d.GraphicContext does not accept null as value and throws a IllegalArgumentException.

      One can find multiple people having been faced with this issue, e.g.:
      https://issues.apache.org/jira/browse/BATIK-1030
      https://java.net/jira/browse/SVGSALAMANDER-4
      http://sourceforge.net/mailarchive/message.php?msg_id=30140056
      http://osgeo-org.1560.x6.nabble.com/SVG-export-error-td4320781.html
      ...

      A patch will follow...

        Attachments

        1. batik.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: