requiring 'ffi' defines class method :error on Module
-----------------------------------------------------

                 Key: JRUBY-5138
                 URL: http://jira.codehaus.org/browse/JRUBY-5138
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.5.3, JRuby 1.5.2
            Reporter: Alex Boisvert
            Assignee: Thomas E Enebo


As title says, requiring 'ffi' defines class method :error on Module

{code}
boisv...@smudge:/opt/boisvert/jruby-1.5.3/bin$ ./jirb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'ffi'
=> true
irb(main):003:0> Module.error
=> 2
{code}

This is unfortunate because because all modules then inherit the :error method 
and it may shadow/conflict with existing :error methods (with possibly 
different arity).

We recently ran into this issue on the Apache Buildr project 
(https://issues.apache.org/jira/browse/BUILDR-535) since we define an 
error(msg) method for build error-reporting convenience.

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