g_gruber wrote:
Hi,
today i tried to write a code-generator which generates several libraries
for me.
The generated Libraries provide encoding-Functions in order to encode or
decode strings (i. e. cp1252 -> utf8).
But some Libraries become very big (> 2 MB Code) because of the Character
Codes.
Now the problem:
I can not compile these files. I always become the message:
Failure during compilation of file <file>
java.lang.StackOverflowError: null
when i call "jruby -S jrubyc <file>".
I uploaded the source-file:
http://www.nabble.com/file/p22100517/CP936.rb CP936.rb
I have JRuby Version 1.1.6 and Java Version 1.6.0_012-b04 installed
Can someone help me? Is this my fault or is this a bug in jrubyc, or java,
...?
This is a known bug in jrubyc, unfortunately. The body of your class
there is extremely large, which causes problems for compiling it. The
JVM allows no more than 65k of bytecode for a single body of code, and I
suspect the size of this method is blowing it up.
We do have code in place to split up method bodies, but probably not
class bodies. Could you file a bug? We could extend the same splitting
logic to class bodies, and it may make it possible for you to compile this.
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email