Compiled Ruby files with dashes cannot be required when on the load 
path/classpath.
-----------------------------------------------------------------------------------

                 Key: JRUBY-3247
                 URL: http://jira.codehaus.org/browse/JRUBY-3247
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.5, JRuby 1.1.6
            Reporter: Logan Barnett


src/main.rb has:
{noformat}
require 'foo-bar'
FooBar.new
{noformat}

src/foo-bar.rb has:
{noformat}
class FooBar
end
{noformat}
 
src is on the load path.
The error:
{noformat}
Java::OrgJrubyExceptions::RaiseException - org.jruby.exceptions.RaiseException: 
Linkage error loading compiled script; you may need to recompile 
'file:/Users/logan/dev/sandbox/mb-main-missing-test/package/jar/ChangeMe.jar!/main.class':
 java.lang.NoClassDefFoundError: foo_minus_bar (wrong name: src/foo_minus_bar)
src/main.rb:50:in `require': Linkage error loading compiled script; you may 
need to recompile 
'file:/Users/logan/dev/sandbox/mb-main-missing-test/package/jar/ChangeMe.jar!/main.class':
 java.lang.NoClassDefFoundError: foo_minus_bar (wrong name: src/foo_minus_bar) 
(LoadError)
{no_format}

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