https://issues.apache.org/bugzilla/show_bug.cgi?id=50810

           Summary: Unable to execute scripts with more than 64 KiB
                    bytecode
           Product: Batik
           Version: 1.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scripting
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Nowadays the 64k limit prevents many SVGs from being used with Batik. At least
there should be some option to disable the optimization without needing to
patch Batik:

--- RhinoInterpreter-.java    2011-02-19 06:24:37.000000000 +0100
+++ RhinoInterpreter.java    2011-02-19 06:26:46.236580870 +0100
@@ -593,12 +593,10 @@ public class RhinoInterpreter implements
         protected Context makeContext() {
             Context cx = super.makeContext();
             cx.setWrapFactory(wrapFactory);
             cx.setSecurityController(securityController);
             cx.setClassShutter(classShutter);
-            if (rhinoClassLoader == null) {
-                cx.setOptimizationLevel(-1);
-            }
+            cx.setOptimizationLevel(-1);
             return cx;
         }
     }
 }

A workaround is to put parts of the script somewhere else in the XML tree and
eval() it (then it won't be compiled).

I'd also suggest to put this issue into the FAQ.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to