Closed tweimer closed 3 years ago
Thanks Tobias, I was looking and trying to understand the issue as well. Btw I am also trying to move cloner to java 11 (running the tests with jdk 16 as well)
Oh sorry just saw that with this change, a test in TestCloner fails. This is because the fields have to be accessible even if those are not going to be cloned. Cloner needs to set the value of the field in the clone object, even if the value doesn't have to be a deep-clone. So it does have to get it from the field (access it) in order to copy it to the new object.
I've pushed some changes to master
Im sorry for that. Seems I forgot to re-run the full suite after I fixed the new test.
no worries
Okay, I tested that with the specified fis and test case, as in the commit linked above.
Before the fix, the test failed with:
After the fix, that Exception is gone, but tjhere is another one:
That doesn't make it much better, but at least the fix doesn't hurt.
Fixes #105