When the Invalid method Code length exception for generated bytecode is thrown the code crashes.
Fix: catch such exceptions and output a warning on the error listener.
We check the count of sub-expressions in a expression tree for a xsl-template or function. If the count is over some threshold we interpret the parent expression and recursively check and compile sub-expressions into bytecode that is below the threshold.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In addition, fix applied to OptimizeEE:
We check the count of sub-expressions in a expression tree for a xsl-template or function. If the count is over some threshold we interpret the parent expression and recursively check and compile sub-expressions into bytecode that is below the threshold.