I committed a fix this morning which fixes this example. The fix removes lazy evaluation and moves instance method creation for proxies into Java (from Ruby in javasupport.rb). In fact instance method calls to java from ruby are now even a bit faster than before..
Let me know if this causes problems. I do not expect any issues unless java beans introspector comes to a different conclusion than our by-hand logic we had before (no unit tests regressed) for defining short-hand bean methods. If we do run into issues with the short beanname methods, then it is likely better behavior now. Proxy loading appears to be largely the same speed as with lazy proxies. -Tom On Tue, 14 Mar 2006, David Corbin defenestrated me: > The arity for list.add is coming from ModA#add, without any real reason to be. > I'm not sure if this is "special case for the 'default' object", or not. > > ---cut---- > require 'java' > include_class 'java.util.ArrayList' > > module ModA > > def add a,b,c > end > > end > > include ModB > > list = ArrayList.new > list.add "Foo" > ---end--- > On Tuesday 14 March 2006 03:04 pm, David Corbin wrote: > > On Tuesday 14 March 2006 08:04 pm, Charles O Nutter wrote: > > Still not there yet. I've got a java proxy that is getting an "Wrong # of > > arguments". I'll dig into it.... > > > > David > > > > > Ok, I'll be watching for it! > > > > > > On 3/14/06, David Corbin <[EMAIL PROTECTED]> wrote: > > > > On Monday 13 March 2006 10:22 pm, Charles O Nutter wrote: > > > > > Try it now; it was almost the same issue that was causing some other > > > > > flow-control stuff to blow up. I believe it is occurring when you > > > > > have a return cross frame boundaries, as with a block call that does > > > > > return and runs in a different EvalState. I'm continuing to isolate > > > > > it to a > > > > > > > > specific > > > > > > > > > case that doesn't require Test::Unit to fail. > > > > > > > > > > Your case runs now. We're getting there! > > > > > > > > That fixes that problem for sure. I'm having other problems, but I'm > > > > not sure > > > > if it's JRuby or something internal in our > > > > application/configuration. I'll > > > > let you know when I do. > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > > > language > > > > that extends applications into web and mobile media. Attend the live > > > > webcast > > > > and join the prime developer group breaking into this new coding > > > > territory! > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=12164 > > > >2 _______________________________________________ > > > > Jruby-devel mailing list > > > > [email protected] > > > > https://lists.sourceforge.net/lists/listinfo/jruby-devel > > > > > > -- > > > Charles Oliver Nutter @ headius.blogspot.com > > > JRuby Developer @ jruby.sourceforge.net > > > Application Architect @ www.ventera.com > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > > that extends applications into web and mobile media. Attend the live > > webcast and join the prime developer group breaking into this new coding > > territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > _______________________________________________ > > Jruby-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/jruby-devel > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Jruby-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jruby-devel -- + http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+ | Thomas E Enebo, Protagonist | "Luck favors the prepared | | | mind." -Louis Pasteur | ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Jruby-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jruby-devel
