Roger Pack created JRUBY-6596: --------------------------------- Summary: poor error message or request for more functionality for include_package java.awt.image Key: JRUBY-6596 URL: https://jira.codehaus.org/browse/JRUBY-6596 Project: JRuby Issue Type: Improvement Environment: jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-10 36a6987) (Java HotSpot(TM) Client VM 1.6.0_26) [Windows 7-x86-java] Reporter: Roger Pack Assignee: Thomas E Enebo
Hello. I would expect the following to work, or else complain "earlier" than it does, or else throw a different exception message :) Thanks! {code} >> require 'java' => true irb(main):002:0> module M; include_package java.awt.image; end => nil irb(main):003:0> M::BufferedImage ArgumentError: Java package `java.awt.image' does not have a method `+' from file:/C:/dev/ruby/downloads/jruby/lib/jruby.jar!/jruby/java/java_package_module_template.rb:31:in `method_missing' from file:/C:/dev/ruby/downloads/jruby/lib/jruby.jar!/jruby/java/core_ext/module.rb:26:in `const_missing' from org/jruby/RubyArray.java:1611:in `each' from file:/C:/dev/ruby/downloads/jruby/lib/jruby.jar!/jruby/java/core_ext/module.rb:24:in `const_missing' from (irb):3:in `evaluate' from org/jruby/RubyKernel.java:1037:in `eval' from org/jruby/RubyKernel.java:1353:in `loop' from org/jruby/RubyKernel.java:1146:in `catch' from org/jruby/RubyKernel.java:1146:in `catch' {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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