alibaba / testable-mock

换种思路写Mock,让单元测试更简单
https://alibaba.github.io/testable-mock/
MIT License
1.83k stars 310 forks source link

Fixed java9+ String makeConcatWithConstants not work for method refer… #274

Closed zcbbpo closed 2 years ago

zcbbpo commented 2 years ago

Java 9利用InvokeDynamic调用了StringConcatFactory.makeConcatWithConstants方法进行字符串拼接优化,也就是说makeConcatWithConstants的opcode是INVOKEDYNAMIC. 需要过滤掉这种情况

See mock失效

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.