That works well where I had spotted the breakage. I'm now check our other bits and parts.
On Monday 20 March 2006 21:09, Thomas E Enebo wrote: > Fixed. At least this case is. I was not overriding any Ruby functions > which already existed. 'print' was one of those. I removed this > restriction with exception of 'class', which java support reqiures. > I suspect there is more and will continue looking, but I wanted to > give you something to work with. > > -Tom > > On Mon, 20 Mar 2006, David Corbin defenestrated me: > > Who new it would be so simple :) > > > > On Monday 20 March 2006 09:00 pm, Thomas E Enebo wrote: > > > I am on it: > > > > > > require 'java' > > > > > > include_class 'java.io.PrintWriter' > > > include_class 'java.lang.System' > > > > > > p = PrintWriter.new(System.out) > > > p.print "HEH" > > > p.close > > > > > > On Mon, 20 Mar 2006, David Corbin defenestrated me: > > > > On Monday 20 March 2006 10:22 am, Thomas E Enebo wrote: > > > > > 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. > > > > > > > > It does. I'm getting this where we try to call printWriter.print() > > > > from jruby. > > > > > > > > NoMethodError: private method 'print' called for > > > > [EMAIL PROTECTED]:PrintWriter > > > > <ruby stack snipped> > > > > > > > > I *think* it should be calling the String version, and I cannot find > > > > a private print method on PrintWriter. I'll work on creating the > > > > "simple test case". > > > > > > > > In the mean time, can you point me at where the new java code is? It > > > > might be easier to understand the problem in the debugger. > > > > > > > > David > > > > > > > > > > > > ------------------------------------------------------- > > > > 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=121 > > > >642 _______________________________________________ > > > > 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 ------------------------------------------------------- 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
