#635 √ resolved
Wilson Bilkovich

Autoload confused by recursive require

Reported by Wilson Bilkovich | July 13th, 2008 @ 09:09 AM | in 0.10

#> cat al1.rb
module Z
  autoload :Base, "al2"
  autoload :Thing, "al2"
end

module Z
  module Base
  end
end

#> cat al2.rb
module Z
  module Thing
  end
  module Base
  end
end

In MRI, running al1.rb should produce no output, with no errors generated.

Currently, the index in Rubinius that maps filenames to autoloads expects there to be a one-to-one mapping. This may or may not be the problem here, but is where I will start.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket