Fails to build with batik>=1.8
Reported by eolianoe
BUG DESCRIPTION:
----------------
Scilab fails to build against batik>=1.8. After applying the patch from http://bugzilla.scilab.org/show_bug.cgi?id=13724 (as batik>=1.8 is shipped with xml-commons-2.0), the build fails on those errors:
ERROR LOG:
----------
[javac] /dir/scilab-5.5.2/modules/graph/src/java/org/scilab/modules/graph/utils/ScilabGraphUtils.java:31: error: cannot find symbol
[javac] import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
[javac] ^
[javac] symbol: class SAXSVGDocumentFactory
[javac] location: package org.apache.batik.dom.svg
[javac] /dir/scilab-5.5.2/modules/graph/src/java/org/scilab/modules/graph/utils/ScilabGraphUtils.java:97: error: cannot find symbol
[javac] SAXSVGDocumentFactory df = new SAXSVGDocumentFactory(xmlParser);
[javac] ^
[javac] symbol: class SAXSVGDocumentFactory
[javac] location: class ScilabGraphUtils
[javac] /dir/scilab-5.5.2/modules/graph/src/java/org/scilab/modules/graph/utils/ScilabGraphUtils.java:97: error: cannot find symbol
[javac] SAXSVGDocumentFactory df = new SAXSVGDocumentFactory(xmlParser);
[javac] ^
[javac] symbol: class SAXSVGDocumentFactory
[javac] location: class ScilabGraphUtils
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 errors
BUILD FAILED
/dir/scilab-5.5.2/modules/prebuildjava/build.xml:56: The following error occurred while executing this line:
/dir/scilab-5.5.2/build.incl.xml:107: Compile failed; see the compiler error output for details.
HOW TO REPRODUCE THE BUG:
-------------------------
Apply the patch from http://bugzilla.scilab.org/show_bug.cgi?id=13724 and compile scilab with batik>=1.8 from https://xmlgraphics.apache.org/batik/.
If the patch is not applied the build fails on the same error as the other bug.
OTHER INFORMATION:
------------------
Everything goes fine with batik-1.7