Doh!  I will have to update that...

-Tom

On Mon, 20 Mar 2006, Ola Bini defenestrated me:

> Ah, yes, I seem to remember that now. =)
> 
> The problem is, that this code was snipped right from JRuby's homepage
> of examples:
> http://jruby.sourceforge.net/docs/java-highlevel.shtml
> 
> Regards
>  Ola Bini
> 
> ----- Original Message -----
> From: Thomas E Enebo <[EMAIL PROTECTED]>
> Date: Monday, March 20, 2006 8:10 pm
> Subject: Re: [Jruby-devel] AST-parse error?
> To: [email protected]
> <snip>
> > 
> >  The problem is in Ruby, you must include parens if you want an 
> > argumentand a block to be provided.  So that line should be:
> > 
> > include_class('java.lang.String') { |p,name| "J" + name }
> > 
> > -Tom
> > 
> > On Mon, 20 Mar 2006, Ola Bini defenestrated me:
> > 
> > > Trying to compile this:
> > >   include_class "java.lang.String" { |p,name| "J" + name }
> > > 
> > > Gives my this exception: 
> > > Serializing 1 file to D:\Project\jruby\build\classes\jruby
> > > java.lang.NullPointerException
> > >       at 
> > org.jruby.main.ASTSerializer.serialize(ASTSerializer.java:89)>      
> > at org.jruby.main.ASTSerializer.serialize(ASTSerializer.java:64)
> > >       at 
> > org.jruby.util.ant.JRubySerialize.execute(JRubySerialize.java:106)> 
> >      at
> > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> > >       at org.apache.tools.ant.Task.perform(Task.java:364)
> > >       at org.apache.tools.ant.Target.execute(Target.java:341)
> > >       at org.apache.tools.ant.Target.performTasks(Target.java:369)
> > >       at 
> > org.apache.tools.ant.Project.executeTarget(Project.java:1214)>      
> > at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
> > >       at org.apache.tools.ant.Main.runBuild(Main.java:673)
> > >       at org.apache.tools.ant.Main.startAnt(Main.java:188)
> > >       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> > >       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> > > 
> > > But it handles
> > >   include_class ("java.lang.String") { |p,name| "J" + name }
> > > without problem.
> > > 
> > > Regards
> > >  Ola Bini
> > > 
> > > 
> > > -------------------------------------------------------
> > > 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 
> > languagethat 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

Reply via email to