unable to load language if CLASSPATH contains empty paths
---------------------------------------------------------
Key: JRUBY-935
URL: http://jira.codehaus.org/browse/JRUBY-935
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 0.9.9
Reporter: Julien Faissolle
I am running in a very annoying problem in production environments where I do
not fully determine the CLASSPATH variable. If the CLASSPATH contains empty
paths, I get an exception *org.apache.bsf.BSFException: unable to load
language: ruby*.
I have traced the problem to class *org.jruby.runtime.load.LoadService* in
method *findFileInClasspath* where no guard exists against empty paths:
{{if (entry.charAt(0) == '/' || (entry.length() > 1 && entry.charAt(1) == ':'))
continue;}}
--
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