jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-5671

RubySpec: Failures only in 1.9 compiled mode

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Incomplete
  • Affects Version/s: JRuby 1.6
  • Fix Version/s: None
  • Component/s: Compiler, Ruby 1.9.2, RubySpec
  • Labels:
    None

Description

1)
A class definition extending an object (sclass) allows accessing the block of the original scope ERROR
LocalJumpError: yield called out of block
/Users/headius/projects/jruby/spec/ruby/fixtures/class.rb:5:in `__singleton__'
/Users/headius/projects/jruby/spec/ruby/fixtures/class.rb:4:in `sclass_with_block'
/Users/headius/projects/jruby/spec/ruby/language/class_spec.rb:186:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/language/class_spec.rb:168:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

2)
The def keyword within a closure looks outside the closure for the visibility FAILED
Expected DefSpecsLambdaVisibility to have private instance method 'some_method'
but it does not
/Users/headius/projects/jruby/spec/ruby/language/def_spec.rb:504:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/language/def_spec.rb:493:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

3)
Kernel.__callee__ returns the current method, even when aliased FAILED
Expected nil
 to equal :f

/Users/headius/projects/jruby/spec/ruby/core/kernel/shared/__method__.rb:9:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/kernel/__callee___spec.rb:5:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

4)
Kernel.__callee__ returns the original name when aliased method FAILED
Expected nil
 to equal :f

/Users/headius/projects/jruby/spec/ruby/core/kernel/shared/__method__.rb:13:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/kernel/__callee___spec.rb:5:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

5)
self.send(:block_given?) returns true if and only if a block is supplied FAILED
Expected false
 not to equal false

/Users/headius/projects/jruby/spec/ruby/core/kernel/block_given_spec.rb:6:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/kernel/block_given_spec.rb:35:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

6)
Proc.new with an associated block returns a new Proc instance from the block passed to the containing method ERROR
ArgumentError: tried to create Proc object without a block
org/jruby/RubyProc.java:141:in `new'
/Users/headius/projects/jruby/spec/ruby/core/proc/fixtures/common.rb:10:in `new_proc_subclass_in_method'
/Users/headius/projects/jruby/spec/ruby/core/proc/new_spec.rb:117:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/proc/new_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

7)
Regexp.compile given a Regexp enables multibyte support if given in the literal FAILED
Expected "#<Encoding:US-ASCII>"
 to equal "#<Encoding:UTF-8>"

/Users/headius/projects/jruby/spec/ruby/core/regexp/shared/new.rb:168:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/compile_spec.rb:12:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

8)
Regexp#encoding returns Windows-31J if the 's' modifier is supplied FAILED
Expected #<Encoding:UTF-8>
 to equal #<Encoding:Windows-31J>

/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:36:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:5:in `__file__'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

9)
Regexp#encoding returns EUC_JP if the 'e' modifier is supplied FAILED
Expected #<Encoding:UTF-8>
 to equal #<Encoding:EUC-JP>

/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:40:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:5:in `__file__'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

10)
Regexp#encoding upgrades the encoding to that of an embedded String FAILED
Expected #<Encoding:ASCII-8BIT>
 to equal #<Encoding:EUC-JP>

/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:45:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:5:in `__file__'
/Users/headius/projects/jruby/spec/ruby/core/regexp/encoding_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

11)
Regexp.new given a Regexp enables multibyte support if given in the literal FAILED
Expected "#<Encoding:US-ASCII>"
 to equal "#<Encoding:UTF-8>"

/Users/headius/projects/jruby/spec/ruby/core/regexp/shared/new.rb:168:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/new_spec.rb:12:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

12)
Regexp.union raises ArgumentError if the kcodes conflict FAILED
Expected ArgumentError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/regexp/union_spec.rb:25:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/regexp/union_spec.rb:3:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

13)
String#chr understands Strings that contain a mixture of character widths FAILED
Expected "\xE8"
 to equal "\xE8\x82\x82"

/Users/headius/projects/jruby/spec/ruby/core/string/chr_spec.rb:41:in `__file__'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyEnumerable.java:1262:in `all?'
org/jruby/RubyArray.java:1572:in `each'
/Users/headius/projects/jruby/spec/ruby/core/string/chr_spec.rb:4:in `__file__'
/Users/headius/projects/jruby/spec/ruby/core/string/chr_spec.rb:3:in `(root)'
org/jruby/RubyKernel.java:1072:in `load'
org/jruby/RubyBasicObject.java:1697:in `instance_eval'
org/jruby/RubyArray.java:1572:in `each'

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 17/Jan/12 5:50 PM

Open-ended RubySpec bug with no followup.

Show
Charles Oliver Nutter added a comment - 17/Jan/12 5:50 PM Open-ended RubySpec bug with no followup.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Charles Oliver Nutter
Vote (0)
Watch (0)

Dates

  • Created:
    28/Mar/11 6:54 PM
    Updated:
    17/Jan/12 5:50 PM
    Resolved:
    17/Jan/12 5:50 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.