Error is shown when script length is more than 64K - should be just warning
---------------------------------------------------------------------------
Key: JRUBY-4539
URL: http://jira.codehaus.org/browse/JRUBY-4539
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.4
Environment: Mac OS X 10.6.2
Reporter: Raimonds Simanovskis
Attachments: array_sort_bug3.rb
I tried to run attached script with one large literal array and got error
message:
Error, could not compile; pass -d or -J-Djruby.jit.logging.verbose=true for
more details
when running with jruby -d then the output was:
could not compile: array_sort_bug3.rb because of: "Invalid method Code length
84670 in class file array_sort_bug3"
java.lang.ClassFormatError: Invalid method Code length 84670 in class file
array_sort_bug3
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:698)
at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:22)
at
org.jruby.compiler.impl.StandardASMCompiler.loadClass(StandardASMCompiler.java:191)
at org.jruby.Ruby.tryCompile(Ruby.java:579)
at org.jruby.Ruby.tryCompile(Ruby.java:559)
at org.jruby.Ruby.runNormally(Ruby.java:540)
at org.jruby.Ruby.runFromMain(Ruby.java:396)
at org.jruby.Main.run(Main.java:272)
at org.jruby.Main.run(Main.java:117)
at org.jruby.Main.main(Main.java:97)
After this error message script was executed by interpreter but it is confusing
that this message is called error - should be renamed to warning.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email