Bonjour à tous,
An amazing bug occurs with jruby-1.2rc1 (and not with jruby-1.1.6).
Let the first line of a script be the standard shebang;
#!/bin/env jruby
If this first line contains one and only one white space at the end,
then a java error occurs immediately:
Shared archive: sharing disabled for server vm
String.java:558:in charAt': java.lang.StringIndexOutOfBoundsException: String index out of range: 0 from RubyInstanceConfig.java:745:in
isInterpreterArgument’
from RubyInstanceConfig.java:707:in processArguments' from RubyInstanceConfig.java:516:in
processArguments’
from Main.java:197:in run' from Main.java:110:in
run’
from Main.java:94:in `main’
This error arises either if the script is called as an unix command
thanks to the shebang, or directly as an argument to the jruby
command.
Cordialement,
– Maurice
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email