usage of unexistant variable in REXML::SourceFactory
----------------------------------------------------
Key: JRUBY-2333
URL: http://jira.codehaus.org/browse/JRUBY-2333
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC3
Reporter: Jaroslav Libak
Priority: Minor
Fix For: JRuby 1.1
In REXML::SourceFactory, in method def SourceFactory::create_from(arg)
there we throw exception:
else
raise "#{source.class} is not a valid input stream. It must walk \n"+
"like either a String, IO, or Source."
end
But when we get there, source isn't defined. Instead, "arg" should be used
since it is the parameter of method.
It can be simulated when we pass some invalid input to xml parser like nil.
--
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