Merge remote-tracking branch 'origin/GP-0_Dan_testFixes-2025-04-14-1'

This commit is contained in:
Ryan Kurtz 2025-04-14 09:20:40 -04:00
commit 5fb58661b9

View file

@ -144,12 +144,15 @@ public class DependentServiceResolver<T> {
constructed.put(cons.method, service);
}
instancesByClass.put(cons.cls, service);
for (Field f : fieldsByClass.remove(cons.cls)) {
try {
f.set(obj, service);
}
catch (IllegalArgumentException | IllegalAccessException e) {
throw new AssertionError(e);
Set<Field> fields = fieldsByClass.remove(cons.cls);
if (fields != null) {
for (Field f : fields) {
try {
f.set(obj, service);
}
catch (IllegalArgumentException | IllegalAccessException e) {
throw new AssertionError(e);
}
}
}
}