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

Two test SVG files from regard unit tests are encoded in XML 1.0 not 1.2.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 1.7.1
    • None
    • Samples

    Description

      Parsing XML 1.0 files with 1.2 rules generates cryptic error messages like below. Updating the files fixes the unit tests.

      It affects these Unit tests:

      text.selection.vertpath.supersub#supersub(3,18)

      text.selection.vertpath.beforeafter#beforeafter(0,28)

      Stack trace:

      org.w3c.dom.DOMException: The invoked method cannot be called for a primitive value type.
      at org.apache.batik.css.engine.value.AbstractValue.createDOMException(Unknown Source)
      at org.apache.batik.css.engine.value.AbstractValue.getFloatValue(Unknown Source)
      at org.apache.batik.css.engine.value.svg.BaselineShiftManager.computeValue(Unknown Source)
      at org.apache.batik.css.engine.CSSEngine.getComputedStyle(Unknown Source)
      at org.apache.batik.bridge.CSSUtilities.getComputedStyle(Unknown Source)
      at org.apache.batik.bridge.TextUtilities.convertBaselineShift(Unknown Source)
      at org.apache.batik.bridge.SVGTextElementBridge.getAttributeMap(Unknown Source)
      at org.apache.batik.bridge.SVGTextElementBridge.fillAttributedStringBuffer(Unknown Source)
      at org.apache.batik.bridge.SVGTextElementBridge.fillAttributedStringBuffer(Unknown Source)
      at org.apache.batik.bridge.SVGTextElementBridge.fillAttributedStringBuffer(Unknown Source)
      at org.apache.batik.bridge.SVGTextElementBridge.buildAttributedString(Unknown Source)
      at org.apache.batik.bridge.SVGTextElementBridge.computeLaidoutText(Unknown Source)
      at org.apache.batik.bridge.SVGTextElementBridge.buildGraphicsNode(Unknown Source)
      at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
      at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
      at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
      at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
      at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
      at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
      at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
      at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)

      Attachments

        1. verticalTextOnPath.svg
          9 kB
          Peter Wayner

        Activity

          People

            Unassigned Unassigned
            pwayner Peter Wayner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: