JRuby Conversion of Scenegraph Node Demo Fails
----------------------------------------------

                 Key: JRUBY-2936
                 URL: http://jira.codehaus.org/browse/JRUBY-2936
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.3
         Environment: Windows Vista Business but not specific to this platform
            Reporter: Paul Fraser


I have added this issue to keep it alive, in the event that it is not already 
being handled.

Following discussion on "[EMAIL PROTECTED]" subject "Scene Graph Demo Convert 
to JRuby Problem" 
Charles Oliver Nutter stated:

So I found the problem..it's a known issue I really dislike, and honestly I 
need to try to find a better way to fix it than the way we did in 1.1.3.

Your TransformComposer is < Composer, which is cool. But in cases of Ruby 
clases extending Java classes, java_class points at *the wrong class*. You need 
to use java_class.java_proxy_class in this case. So that's bug number one.

Unfortunately bug number two is a bit more problematic. Because our Ruby 
subclasses of Java classes have some JRuby baggage, I don't think the logic in 
the Composer class is going to work correctly. It looks up a default 
constructor using reflection and tries to call it, but in our case that doesn't 
properly set up the class. Here's the error that results if I use 
java_proxy_class (and also construct an instance of TransformComposer to force 
our lazy creation of the proxy class):

Caused by: java.lang.NoSuchMethodException: 
org.jruby.proxy.com.sun.scenario.animation.Composer$Proxy0.<init>()

Grr. So this particular path to getting scenegraph working has some roadblocks, 
but they're roadblocks I want to look at trying to fix for this upcoming 
release. So I'm looking into some of them right now.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to