On Thu, Aug 7, 2008 at 9:22 PM, Paul Fraser <
paulf@...> wrote:
> Nick Sieger wrote:
>>
>> On Thu, Aug 7, 2008 at 6:44 PM, Paul Fraser <
paulf@...> wrote:
>>
>>>
>>> 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?
>>>
>>
>> What does the Ruby code you wrote look like?
>>
>
> Hi Nick,
>
> I did not write it, just converting it , this is how some of it looks at
> present, a bit messy at this stage, but, does this help?
>
> Composer.register(AffineTransform.class, TransformComposer.class);
> <<<<<<<<<<<<<<<<<<<<<<<<<<<< trouble
AffineTransform.java_class, TransforComposer.java_class
Calling .class gets Ruby class versus the Java class.
-Tom
--
Blog:
http://www.bloglines.com/blog/ThomasEEneboEmail:
enebo@... ,
tom.enebo@...
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email