asLody/legend

对String.startsWith()做hook时会造成递归调用

rk700 opened this issue · 2 comments

rk700 commented

如果hook了String.startsWith()方法, 在调用原方法callSuper时,会调用isArt();但isArt()里还会调用String.startsWith(),如此便造成无穷递归调用,应用无反应。

类似地,callSuper()中的某些调用如果被hook了并且hook方法中还有callSuper(),应该都会造成递归

这个算是常识好吗。

rk700 commented

是,这个是当时才意识到