9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-28 03:19:14 +00:00

refactor(core): 优化反射工具类异常处理

This commit is contained in:
jhqwqmc
2025-06-05 22:36:52 +08:00
parent e4196cf559
commit 8d6f8d6d66

View File

@@ -493,7 +493,7 @@ public class ReflectionUtils {
try {
return LOOKUP.unreflectGetter(field);
} catch (IllegalAccessException ex) {
return null;
throw new RuntimeException(ex);
}
}
}
@@ -533,7 +533,7 @@ public class ReflectionUtils {
try {
return LOOKUP.unreflectSetter(field);
} catch (IllegalAccessException ex) {
return null;
throw new RuntimeException(ex);
}
}
}