include_package doesn't seem to propagate constants right
---------------------------------------------------------

                 Key: JRUBY-5107
                 URL: http://jira.codehaus.org/browse/JRUBY-5107
             Project: JRuby
          Issue Type: Bug
         Environment: jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-09-28 
a49928c) (Java HotSpot(TM) Client VM 1.6.0_18) [Windows 7-x86-java]
            Reporter: Roger Pack
            Assignee: Thomas E Enebo


require'java'

module M
  include_package "javax.swing"
  include_package "java.awt.image" # BufferedImage
  class ShowImage < JFrame
    BufferedImage.new
  end
  
end


$ jruby bad.rb
bad.rb:7: uninitialized constant M::ShowImage::BufferedImage (NameError)

unless I'm using it wrong...

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