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

Re: Scene Graph Demo Convert to JRuby Problem

by Charles Oliver Nutter-2 :: Rate this Message:

Reply to Author | View in Thread

Paul Fraser wrote:

> Both of these fail:
>    Composer.register(AffineTransform.class.java_class,
> TransformComposer.class.java_class)
> error:
>    
> C:/Users/paulAdmin/Documents/NetbeansProjects/scene_graph_work/lib/scene_graph.rb:79:
> undefined method `java_class' for Class:Class (NoMethodError)
>
>    Composer.register(AffineTransform.java_class,
> TransformComposer.java_class)
> error runtime:
> com/sun/scenario/animation/Composer.java:162:in `register':
> java.lang.IllegalArgumentException: Problem constructing appropriate
> Composer for type class java.awt.geom.AffineTransform: (NativeException)
>
> What form should the call take?

Gah, previous mail sent too soon.

In the latter case it looks like it worked exactly like it's supposed
to; it was able to receive the AffineTransform class correctly. That
exception is coming out of Sun's library, not out of JRuby...

Perhaps that method is not supposed to take a Class?

- Charlie

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

    http://xircles.codehaus.org/manage_email


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