Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 21/May/12 3:52 PM
Description:

With a yaml file called test.yml that contains "test: @" I get the following error. With MRI 1.9.2 I don't receive any errors.

>irb
jruby-1.7.0.preview1 :001 > require 'yaml'
 => true 
jruby-1.7.0.preview1 :002 > YAML::load_file('test.yml')
ArgumentError: syntax error in "<reader>", line 1, column 7:
    test: @
          ^
	from org/jruby/ext/psych/PsychParser.java:290:in `parse'
	from /Users/tambellini/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/1.9/psych.rb:203:in `parse_stream'
	from /Users/tambellini/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/1.9/psych.rb:151:in `parse'
	from /Users/tambellini/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/1.9/psych.rb:127:in `load'
	from /Users/tambellini/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/1.9/psych.rb:297:in `load_file'
	from org/jruby/RubyIO.java:1113:in `open'
	from /Users/tambellini/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/1.9/psych.rb:297:in `load_file'
	from (irb):2:in `evaluate'
	from org/jruby/RubyKernel.java:1037:in `eval'
	from org/jruby/RubyKernel.java:1353:in `loop'
	from org/jruby/RubyKernel.java:1146:in `catch'
	from org/jruby/RubyKernel.java:1146:in `catch'
	from /Users/tambellini/.rvm/rubies/jruby-1.7.0.preview1/bin/irb:17:in `(root)'
Project: JRuby
Priority: Major Major
Reporter: Alex Tambellini
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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