« Return to Thread: Scene Graph Demo Convert to JRuby Problem

Scene Graph Demo Convert to JRuby Problem

by paulfras :: Rate this Message:

Reply to Author | View in Thread

Hi All,

Trying to convert a Scene Graph demo "Nodes" to JRuby.
https://scenegraph-demos.dev.java.net/demos.html
This line:
Composer.register(AffineTransform.class, TransformComposer.class)
gives this error:
C:/Users/paulAdmin/Documents/NetbeansProjects/scene_graph_work/lib/scene_graph.rb:1:
expected [java.lang.Class, java.lang.Class]; got:
[org.jruby.RubyClass,org.jruby.RubyClass]; error: argument type mismatch
(TypeError)

I am probably out of my depth here, but are the experts able to help?
How do I "cast" an "org.jruby.RubyClass" to a "java.lang.Class" or what
procedure should be used in this case?

Thanks
Paul Fraser

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Scene Graph Demo Convert to JRuby Problem