Regression bug with jruby-1.2rc1

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:inisInterpreterArgument’
from RubyInstanceConfig.java:707:in processArguments' from RubyInstanceConfig.java:516:inprocessArguments’
from Main.java:197:in run' from Main.java:110:inrun’
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

On Wed, Mar 4, 2009 at 10:50 AM, Diamantini Maurice
[email protected] wrote:

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.

Wow, very nice. Could you please file a bug 1? It sounds like it
shouldn’t be tricky to fix, and obviously the workaround is trivial
too.

Cheers,
/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Le 4 mars 09 à 18:34, Nick S. a écrit :

Wow, very nice. Could you please file a bug 1? It sounds like it
shouldn’t be tricky to fix, and obviously the workaround is trivial
too.

Done : http://jira.codehaus.org/browse/JRUBY-3467
– Maurice

Cheers,
/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email