JRuby on gij

M

Michal Suchanek

Hello,

Is JRuby supposed to work with gij? It would be probably slow even if
it did but it throws an exception at the very start.

$ java --version
java version "1.5.0"
gij (GNU libgcj) version 4.3.0 20080202 (experimental) [trunk revision 132072]

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ jruby --version
ruby 1.8.6 (2008-03-18 rev 6255) [i386-jruby1.1RC3]
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:350)
at org.jruby.runtime.ThreadContext.getFrameSelf(ThreadContext.java:372)
at org.jruby.RubyClass.invoke(RubyClass.java:232)
at org.jruby.javasupport.util.RuntimeHelpers.invokeAs(RuntimeHelpers.java:322)
at org.jruby.runtime.Dispatcher$DefaultDispatcher.callMethod(Dispatcher.java:17)
at org.jruby.RubyClass.invoke(RubyClass.java:222)
at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:330)
at org.jruby.RubyObject.callMethod(RubyObject.java:481)
at org.jruby.RubyObject.equals(RubyObject.java:271)
at java.util.AbstractMap.equals(libgcj.so.90)
at java.util.WeakHashMap.internalGet(libgcj.so.90)
at java.util.WeakHashMap.put(libgcj.so.90)
at org.jruby.util.collections.WeakHashSet.add(WeakHashSet.java:44)
at org.jruby.RubyClass.addSubclass(RubyClass.java:355)
at org.jruby.RubyClass.<init>(RubyClass.java:173)
at org.jruby.RubyClass.newClass(RubyClass.java:184)
at org.jruby.RubyClass.newClass(RubyClass.java:191)
at org.jruby.Ruby.defineClassUnder(Ruby.java:655)
at org.jruby.Ruby.defineClass(Ruby.java:611)
at org.jruby.RubyBoolean.createFalseClass(RubyBoolean.java:71)
at org.jruby.Ruby.initCore(Ruby.java:890)
at org.jruby.Ruby.bootstrap(Ruby.java:851)
at org.jruby.Ruby.init(Ruby.java:827)
at org.jruby.Ruby.newInstance(Ruby.java:157)
at org.jruby.Main.run(Main.java:121)
at org.jruby.Main.run(Main.java:88)
at org.jruby.Main.main(Main.java:79)

Thanks

Michal
 
K

Karl von Laudermann

Hello,

Is JRuby supposed to work with gij? It would be probably slow even if
it did but it throws an exception at the very start.

In my (admittedly rather limited) experience, nothing works with
gij. :p
 
T

Thomas Enebo

Michal said:
Hello,

Is JRuby supposed to work with gij? It would be probably slow even if
it did but it throws an exception at the very start.
This problem has been reported to JRuby already, but we have not had
time to fix it yet (or at least understand who needs to fix it).

-Tom
 
M

Michal Suchanek

In my (admittedly rather limited) experience, nothing works with
gij. :p
Same here. However, for some reason it's the default java in Debian :-/

Thanks

Michal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,470
Messages
2,571,809
Members
48,797
Latest member
PeterSimpson
Top