When I override isClean in a subclass of StackTracey, the original method is called instead.
This does not happen with isThirdParty, which I can override no problem: indeed, my override of isThirdParty is correctly called by the original isClean.
I believe this problem arises because mergeRepeatedLines calls new StackTracey, rather than constructing the current class. The same problem is present in withSourcesAsync(), and in the array methods, so that even overriding clean() is not sufficient to prevent an isClean being ignored.
When I override
isCleanin a subclass ofStackTracey, the original method is called instead.This does not happen with
isThirdParty, which I can override no problem: indeed, my override ofisThirdPartyis correctly called by the originalisClean.I believe this problem arises because
mergeRepeatedLinescallsnew StackTracey, rather than constructing the current class. The same problem is present inwithSourcesAsync(), and in the array methods, so that even overridingclean()is not sufficient to prevent anisCleanbeing ignored.