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
The DefaultRecordMapper cannot instantiate inner classes via reflection, as it doesn't know anything about an enclosing instance. E.g. this isn't possible:
Users will have to make their nested classes static, e.g.
classOuter {
staticclassInner {}
}
This can easily be forgotten, because of Java's ill chosen default of making nested classes inner classes. It would be nice if the DefaultRecordMapper could check this:
The
DefaultRecordMapper
cannot instantiate inner classes via reflection, as it doesn't know anything about an enclosing instance. E.g. this isn't possible:And then
Users will have to make their nested classes static, e.g.
This can easily be forgotten, because of Java's ill chosen default of making nested classes inner classes. It would be nice if the
DefaultRecordMapper
could check this:And add a debug message to the list of messages from #11794
The text was updated successfully, but these errors were encountered: