The private keyword doesn't change visiblity of previously called methods with 
same send/call site
--------------------------------------------------------------------------------------------------

                 Key: JRUBY-2364
                 URL: http://jira.codehaus.org/browse/JRUBY-2364
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1
         Environment: Latest JRuby 1.1
            Reporter: Vladimir Sizikov


Yet another new rubyspec failure:

{noformat}
#> bin/mspec ci -t j -X /opt/work/jruby.git/test/spec_excludes 
spec/ruby/1.8/language/private_spec.rb
....F

1)
The private keyword changes visiblity of previously called methods with same 
send/call site FAILED
Expected NoMethodError but no exception was raised
/opt/work/rbx.git/./mspec/expectations.rb:10:in `fail_with'
/opt/work/rbx.git/./mspec/expectations/should.rb:6:in `should'
/opt/work/rbx.git/./spec/ruby/1.8/language/private_spec.rb:43:in 
`/opt/work/rbx.git/./spec/ruby/1.8/language/private_spec.rb'
/opt/work/rbx.git/./mspec/runner/mspec.rb:112:in `call'
/opt/work/rbx.git/./mspec/runner/mspec.rb:112:in `protect'
/opt/work/rbx.git/./mspec/runner/state.rb:46:in `each'
/opt/work/rbx.git/./mspec/runner/state.rb:46:in `protect'
/opt/work/rbx.git/./mspec/runner/state.rb:60:in `process'
/opt/work/rbx.git/./mspec/runner/state.rb:56:in `each'
/opt/work/rbx.git/./mspec/runner/state.rb:56:in `process'
/opt/work/rbx.git/./mspec/runner/mspec.rb:19:in `describe'
/opt/work/rbx.git/./mspec/runner/object.rb:11:in `describe'
/opt/work/rbx.git/./spec/ruby/1.8/language/private_spec.rb:4:in 
`/opt/work/rbx.git/./spec/ruby/1.8/language/private_spec.rb'
/opt/work/rbx.git/./spec/ruby/1.8/language/private_spec.rb:37:in `load'
/opt/work/rbx.git/./mspec/runner/mspec.rb:37:in `files'
/opt/work/rbx.git/./mspec/runner/mspec.rb:112:in `call'
/opt/work/rbx.git/./mspec/runner/mspec.rb:112:in `protect'
/opt/work/rbx.git/./mspec/runner/mspec.rb:37:in `files'
/opt/work/rbx.git/./mspec/runner/mspec.rb:34:in `each'
/opt/work/rbx.git/./mspec/runner/mspec.rb:34:in `files'
/opt/work/rbx.git/./mspec/runner/mspec.rb:26:in `process'
mspec/bin/mspec-ci:59

Finished in 0.114000 seconds

1 file, 5 examples, 11 expectations, 1 failure, 0 errors
{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