REXML returns error for add_attribute
-------------------------------------
Key: JRUBY-3160
URL: http://jira.codehaus.org/browse/JRUBY-3160
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.5
Environment: Windows Vista, Sun JDK 6
Reporter: Jeremy Corbett
Assignee: Thomas E Enebo
Priority: Minor
Attachments: minimum.rb
When running the attached file the following error is returned:
C:/Users/jeremy/jruby-1.1.5/lib/ruby/1.8/rexml/text.rb:292:in `normalize':
private method `gsub' called for 729:Fixnum (NoMethodError)
from C:/Users/jeremy/jruby-1.1.5/lib/ruby/1.8/rexml/element.rb:1084:in
`[]='
from C:/Users/jeremy/jruby-1.1.5/lib/ruby/1.8/rexml/element.rb:586:in
`add_attribute'
from minimum.rb:12:in `createSVG'
from minimum.rb:19
This code is known to run on Linux and Windows MRI without a problem. As a
weird sidenote, add_attribute runs without a problem in other contexts (email
me for code).
If any of the add_attribute calls is uncommented an error will be returned
(albeit with slightly different messages).
--
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