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

className处理出错 #15

Closed
iwantthink opened this issue Aug 20, 2018 · 1 comment
Closed

className处理出错 #15

iwantthink opened this issue Aug 20, 2018 · 1 comment

Comments

@iwantthink
Copy link

代码位置: InjectTransform-isJarNeedModify(File jarFile)

    className = entryName.replace("/", ".").replace(".class","")

出现问题: 仅后一个替换.class字符串的 函数生效.... className中的/符号并没有被替换掉

拆成俩条语句之后生效...

     className = entryName.replace("/", ".")
     className = className.replace(".class", "")
@nailperry-zd
Copy link
Owner

@iwantthink 可能要考虑下Window与Mac下File.separator的差异

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