JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-5987

Regression: IncludedModuleWrapper does not delegate to new Module autoload map

    Details

    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      The moving of the autoload map from a global map in LoadService to a per-module map made a regression in lookup of autoloads.

      module ActiveRecord
        module Associations
          autoload :HasOneThroughAssociation, 'h1t'
        end
      
        class Base
          include Associations
        end
      end
      
      class MyModel < ActiveRecord::Base
        p HasOneThroughAssociation
      end
      

      The lookup of HasOneThroughAssociation here fails.

        Issue Links

          Activity

          Hide
          Nick Sieger added a comment -

          Fixed in f4376337.

          Show
          Nick Sieger added a comment - Fixed in f4376337.

            People

            • Assignee:
              Nick Sieger
              Reporter:
              Nick Sieger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: