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

batik-codec-1.8.jar is broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: SVGGraphics2D, Utilities
    • Labels:
      None

      Description

      the jar for batik-codec that's both in maven and in the distribution mirrors has a META-INF/services folder containing two files (RegistryEntry and ImageWriter) that point to classes inside the imageio package:

      org.apache.batik.ext.awt.image.codec.imageio.ImageIOPNGImageWriter
      org.apache.batik.ext.awt.image.codec.imageio.ImageIOTIFFImageWriter
      org.apache.batik.ext.awt.image.codec.imageio.ImageIOJPEGImageWriter
      

      However, the org.apache.batik.ext.awt.image.codec.imageio package is not included in the jar.

      Both files have commented-out entries that would work:

      #org.apache.batik.ext.awt.image.codec.png.PNGRegistryEntry
      #org.apache.batik.ext.awt.image.codec.tiff.TIFFRegistryEntry
      

      This causes a ClassNotFoundException when trying to include images in a SVG file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              micheleb Michele Bonazza
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: