Java integration violates Module#name contract (reduction of jirb issue)
------------------------------------------------------------------------

                 Key: JRUBY-1275
                 URL: http://jira.codehaus.org/browse/JRUBY-1275
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.x
         Environment: Ubuntu x86, java 6
            Reporter: Damian Steer
            Priority: Minor


Module#name should return a String, however:

{noformat}
irb(main):004:0> Java::JavaLang.class
=> Module
irb(main):005:0> Java::JavaLang.name 
=> Java::JavaLangName
irb(main):006:0> Java::JavaLang.name.class
=> Module
{noformat}

This (for obscure reasons) breaks IRB completion when java integration is 
enabled.

{noformat}
irb(main):001:0> "1".length # competed correctly
=> 1
irb(main):002:0> include Java
=> Object
irb(main):003:0> "1".l/home/pldms/.irbrc:1: can't convert Module into String 
(TypeError)
        from /home/pldms/.irbrc:1:in `each_object'
        from 
/home/pldms/Development/CVS-Other/jruby/lib/ruby/1.8/irb/completion.rb:152
{noformat}

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