Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rk700 opened this issue Feb 27, 2017 · 2 comments
Open

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

rk700 opened this issue Feb 27, 2017 · 2 comments

Comments

@rk700
Copy link

rk700 commented Feb 27, 2017

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

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

@yunshouhu
Copy link

这个算是常识好吗。

@rk700
Copy link
Author

rk700 commented Apr 27, 2017

是,这个是当时才意识到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants