Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    687efd84
    MAINT-5232: Loosen LLSingleton circularity constraints slightly. · 687efd84
    Nat Goodspeed authored
    LLSingleton explicitly supports circular dependencies: initialization
    performed during an LLSingleton subclass's initSingleton() method may
    recursively call that same subclass's getInstance() method. On the other hand,
    circularity from a subclass constructor cannot be permitted, else
    getInstance() would have to return a partially-constructed object.
    Our dependency tracking circularity check initially forbade both. Loosen it to
    permit references from within initSingleton().
    687efd84
    History
    MAINT-5232: Loosen LLSingleton circularity constraints slightly.
    Nat Goodspeed authored
    LLSingleton explicitly supports circular dependencies: initialization
    performed during an LLSingleton subclass's initSingleton() method may
    recursively call that same subclass's getInstance() method. On the other hand,
    circularity from a subclass constructor cannot be permitted, else
    getInstance() would have to return a partially-constructed object.
    Our dependency tracking circularity check initially forbade both. Loosen it to
    permit references from within initSingleton().
Code owners
Assign users and groups as approvers for specific file changes. Learn more.