jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-3247

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.5, JRuby 1.1.6
  • Fix Version/s: JRuby 1.5
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Testcase included:
    yes

Description

src/main.rb has:

require 'foo-bar'
FooBar.new

src/foo-bar.rb has:

class FooBar
end

src is on the load path.
The error:

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)

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Ian Levesque added a comment - 14/Feb/09 1:20 AM

This problem affects me also, same behavior.

Show
Ian Levesque added a comment - 14/Feb/09 1:20 AM This problem affects me also, same behavior.
Hide
Permalink
Patrick Cheng added a comment - 23/Nov/09 10:39 PM

I tested Jruby 1.4 release and a recent trunk. And it works for me.

Show
Patrick Cheng added a comment - 23/Nov/09 10:39 PM I tested Jruby 1.4 release and a recent trunk. And it works for me.
Hide
Permalink
Hiro Asari added a comment - 23/Mar/10 12:25 AM

Logan and Ian,

How is the error produced, exactly?

Which files are compiled, and which not (if any)?

The error message indicates the class files are in a jar. What's in this jar? How do you invoke these classes to get the error message you indicated?

Show
Hiro Asari added a comment - 23/Mar/10 12:25 AM Logan and Ian, How is the error produced, exactly? Which files are compiled, and which not (if any)? The error message indicates the class files are in a jar. What's in this jar? How do you invoke these classes to get the error message you indicated?
Hide
Permalink
Logan Barnett added a comment - 06/Apr/10 9:50 AM

Hiro,
It's been a while since I've looked at the issue. I rebuilt everything. It runs against 1.1.7, the original version. However it's compiled against 1.5.0.dev. I can't produce the problem anymore.

-Logan

Show
Logan Barnett added a comment - 06/Apr/10 9:50 AM Hiro, It's been a while since I've looked at the issue. I rebuilt everything. It runs against 1.1.7, the original version. However it's compiled against 1.5.0.dev. I can't produce the problem anymore. -Logan
Hide
Permalink
Charles Oliver Nutter added a comment - 07/Apr/10 5:08 AM

Call er fixed, matey! ARR!

Show
Charles Oliver Nutter added a comment - 07/Apr/10 5:08 AM Call er fixed, matey! ARR!

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Logan Barnett
Vote (2)
Watch (3)

Dates

  • Created:
    16/Dec/08 5:56 PM
    Updated:
    09/Feb/11 12:20 PM
    Resolved:
    07/Apr/10 5:08 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.