You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Loading of DependencyGroups fails with anonymous classes #16
If multiple subclasses of DependencyGroup are defined and at least one of them is an anonymous class, Sinject::Container#load_groups will fail with an ArgumentError.
Both :foo and :bar are registered in the container
Actual:
The call to Sinject::Container#load_groups raises ArgumentError
No dependencies are registered.
This is caused by the container attempting to sort the DependencyGroup subclasses by name. If the class is anonymous its name, by definition, is nil and the comparison with nil raises. An anonymous DependencyGroup subclass will work if it is the onlyDependencyGroup.
changed the title [-]Loading of DependencyGroups fails with Anonymous classes[/-][+]Loading of DependencyGroups fails with anonymous classes[/+]on Feb 21, 2024
Activity
[-]Loading of DependencyGroups fails with Anonymous classes[/-][+]Loading of DependencyGroups fails with anonymous classes[/+]