`Include Java` causes #defined? to act unexpectedly
---------------------------------------------------

                 Key: JRUBY-4401
                 URL: http://jira.codehaus.org/browse/JRUBY-4401
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.4
            Reporter: Max Hawkins
            Assignee: Thomas E Enebo


Encountered this bug while using Cucumber. RSpec does something similar to the 
below. When I `include Java` at the top level of a project I'm testing I get an 
error.

# commenting out the next line fixes the bug
include Java
 
module Foo
  unless defined?(Default)
    class Default
    end
  end
end
 
Foo::Default.new

Credit to Aslak Hellesoy for helping track down this bug.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to