Excellent, I'll have a look!

On 3/13/06, David Corbin <[EMAIL PROTECTED]> wrote:
Finally!  This shows the NPE.  Sorry it took so long, but I had a lot of Java
code in the original failure, and it took me a while to figure out what was
really causing the issue.

----cut----
require 'test/unit'

class ContextStack
  def inContext &proc
    begin
      proc.call
    ensure
    end
  end
end

class Foo
  def foo
    ""
  end
end

class FooTest < Test::Unit::TestCase
  def testX
    ContextStack.new.inContext do
      return Foo.new.foo
   end
  end
end
---end----


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



--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com

Reply via email to