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=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

Reply via email to