easy-random icon indicating copy to clipboard operation
easy-random copied to clipboard

Log skip field population warning

Open astubbs opened this issue 3 years ago • 0 comments

Just burnt quite a bit of time trying to grok the lib and find out why my objects were ending up with null fields. Turns out my recursive structure's depth limit wasn't high enough do satisfy my desired collection size.

Once I'd understood that classes can get instantiated with null fields (https://github.com/j-easy/easy-random/issues/467), I found where field setting was being skipped for some objects in my collections.

I think adding a log warning for these points would be very helpful, especially for new users.

I'm a bit surprised to see there's no logging anywhere. Are you opposed to adding any?

astubbs avatar Nov 07 '21 13:11 astubbs