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); constructed.put(cons.method, service);
} }
instancesByClass.put(cons.cls, service); instancesByClass.put(cons.cls, service);
for (Field f : fieldsByClass.remove(cons.cls)) { Set<Field> fields = fieldsByClass.remove(cons.cls);
try { if (fields != null) {
f.set(obj, service); for (Field f : fields) {
} try {
catch (IllegalArgumentException | IllegalAccessException e) { f.set(obj, service);
throw new AssertionError(e); }
catch (IllegalArgumentException | IllegalAccessException e) {
throw new AssertionError(e);
}
} }
} }
} }