with this code you are always returning a new object from updateRecordComponent(). IMHO this will remove the effect of setRecordComponentPoolingMode(RecordComponentPoolingMode.RECYCLE) as far as I understand it.
I'd do sth. like this:
Code:
if (component instanceof TestRecordComponent) {
TestRecordComponent newComp = (TestRecordComponent) component;
newComp.someSetter(record);
return newComp;
}
Perhaps create a testcase to show the problem with that you describe in #3.
Best regards
Blama
Leave a comment: