jruby-complete.jar fails to load builtins if whitespaces are present in path
----------------------------------------------------------------------------

                 Key: JRUBY-4774
                 URL: http://jira.codehaus.org/browse/JRUBY-4774
             Project: JRuby
          Issue Type: Bug
          Components: Embedding
    Affects Versions: JRuby 1.5.0.RC2
         Environment: Windows
            Reporter: Dennis Ushakov
            Priority: Blocker
             Fix For: JRuby 1.5


Let's say jruby-complete.jar is located in some path which has whitespaces e.g.
"C:\Program Files (x86)\JetBrains\RubyMine RM-96.164\lib\jruby-complete.jar"
When JRuby determines JRuby home location or is loading built-ins 
(builtin/core_ext/symbol) it uses following pattern:
{code}
URL loc = classLoader.getResource(name);
...
path = loc.toURI().getSchemeSpecificPart();
{code}
but location contains whitespaces and toURI method throws parse exception which 
results in
{code}
org.jruby.exceptions.RaiseException: no such file to load -- 
builtin/core_ext/symbol
        at (unknown).new(:1)
        at (unknown).(unknown)(:1)
{code}

Similar code is located in RubyInstanceConfig.getJRubyHome(), 
LoadService.getClassPathResource() and SystemPropertyCatcher.findFromJar()

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


Reply via email to