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

ARGF Cannot be passed as source for REXML

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: JRuby 0.9.8
  • Fix Version/s: JRuby 0.9.9
  • Component/s: None
  • Labels:
    None

Description

The following code:

-----------------
require 'rexml/document'

include REXML

doc = Document.new(ARGF)

doc.elements.each do |element|
puts element
end
-----------------

should print every element in an xml file provided as an argument. In JRuby the result is:

method_missing': undefined local variable or method 'source' for REXML::SourceFactory:Class (NameError)
from /home/jrduncans/apps/jruby/lib/ruby/1.8/rexml/source.rb:19:in `create_from'
from /home/jrduncans/apps/jruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:123:in `stream='
from /home/jrduncans/apps/jruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:100:in `initialize'
from /home/jrduncans/apps/jruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:8:in `new'
from /home/jrduncans/apps/jruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:8:in `initialize'
from /home/jrduncans/apps/jruby/lib/ruby/1.8/rexml/document.rb:190:in `new'
from /home/jrduncans/apps/jruby/lib/ruby/1.8/rexml/document.rb:190:in `build'
from /home/jrduncans/apps/jruby/lib/ruby/1.8/rexml/document.rb:45:in `initialize'

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Ola Bini
    Reporter:
    Stephen Duncan Jr
Vote (0)
Watch (0)

Dates

  • Created:
    06/Mar/07 5:14 PM
    Updated:
    18/Sep/08 10:36 PM
    Resolved:
    25/Mar/07 1:39 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.