YAML does not add is_binary_data? in --1.9 mode
-----------------------------------------------

                 Key: JRUBY-5711
                 URL: http://jira.codehaus.org/browse/JRUBY-5711
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9.2
    Affects Versions: JRuby 1.6
            Reporter: Arturas Slajus
            Assignee: Thomas E Enebo


{noformat}
arturas@arturaz-fujitsu:~/work/spacegame/server$ JRUBY_OPTS="" jirb
jruby-1.6.0 :001 > require 'yaml'; "FOO".is_binary_data?
 => false 
jruby-1.6.0 :002 > 
arturas@arturaz-fujitsu:~/work/spacegame/server$ JRUBY_OPTS="--1.9" jirb
jruby-1.6.0 :001 > require 'yaml'; "FOO".is_binary_data?
NoMethodError: undefined method `is_binary_data?' for "FOO":String
        from (irb):1:in `evaluate'
        from org/jruby/RubyKernel.java:1092:in `eval'
        from org/jruby/RubyKernel.java:1417:in `loop'
        from org/jruby/RubyKernel.java:1204:in `catch'
        from org/jruby/RubyKernel.java:1204:in `catch'
        from /home/arturas/.rvm/rubies/jruby-1.6.0/bin/jirb:17:in `(root)'
jruby-1.6.0 :002 > 
{noformat}

This is used for ruby-debug-ide so it crashes with:

{noformat}
Fast Debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.10.3.2) listens on 
127.0.0.1:51957
%YAML 1.1
--- ! "0"
...
%YAML 1.1
--- ! "0"
...

%YAML 1.1
--- !!null ""
...
%YAML 1.1
--- ! "0"
...
Exception in DebugThread loop: undefined method `is_binary_data?' for 
"#<Spec::Example::ExampleGroup::Subclass_1::Subclass_5:0x312737>":String
Backtrace:
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/xml_printer.rb:124:in
 `print_variable'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/xml_printer.rb:71:in
 `print_variables'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/xml_printer.rb:253:in
 `print_element'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/xml_printer.rb:69:in
 `print_variables'
  from: org/jruby/RubyBasicObject.java:1677:in `__send__'
  from: org/jruby/RubyKernel.java:2067:in `send'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/command.rb:85:in
 `method_missing'
exit
org/jruby/RubyKernel.java:867:in `exit'


1)
SystemExit in 'DispatcherEventHandler.resolve_objects should resolve 
SolarSystemMetadata'
exit
org/jruby/RubyKernel.java:867:in `exit'
org/jruby/RubyKernel.java:836:in `exit'
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide.rb:144:in
 `start_control'
org/jruby/RubyProc.java:268:in `call'
org/jruby/RubyProc.java:232:in `call'

Finished in 0.888 seconds

1 example, 1 failure
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/commands/variables.rb:130:in
 `execute'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/processor.rb:78:in
 `process_context_commands'
  from: org/jruby/RubyArray.java:1572:in `each'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/processor.rb:71:in
 `process_context_commands'
  from: org/jruby/RubyKernel.java:1204:in `catch'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/processor.rb:70:in
 `process_context_commands'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/processor.rb:39:in
 `process_commands'
  from: org/jruby/RubyKernel.java:1204:in `catch'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug/processor.rb:35:in
 `process_commands'
  from: 
/home/arturas/.rvm/gems/jruby-1.6.0/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide.rb:140:in
 `start_control'
  from: org/jruby/RubyProc.java:268:in `call'
  from: org/jruby/RubyProc.java:232:in `call'
{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