Peter Wayner created BATIK-1182: ----------------------------------- Summary: Two test SVG files from regard unit tests are encoded in XML 1.0 not 1.2. Key: BATIK-1182 URL: https://issues.apache.org/jira/browse/BATIK-1182 Project: Batik Issue Type: Bug Components: Samples Affects Versions: 1.7.1 Reporter: Peter Wayner Priority: Trivial Attachments: verticalTextOnPath.svg
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) -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org