这是修改后的MyClassLoader.java#2
Merged
shengsheng-bot merged 1 commit intoimplement-study:mainfrom Jun 2, 2025
Merged
Conversation
不过有一个问题,
传的fqcn为tech.insight.ShengSheng
但目录中只有"加密.class",所以我把路径写死了( String rootFile = System.getProperty("user.dir").concat(".加密".replace('.', File.separatorChar)).concat(".class");)
Contributor
|
感谢你的提交! 接下来的流程将由我自动为你处理 |
Contributor
|
初步审核已通过,请等待CI流程 |
Contributor
|
@TapirHeron ,恭喜你的代码通过了CI流程,完成了本次自测 |
shengsheng-bot
added a commit
that referenced
this pull request
Jun 2, 2025
This reverts commit 6342a19.
Contributor
|
@TapirHeron 写死是没问题的,因为这个需求本身其实就是一个硬编码,但是你最好在代码中使用"equals"而不是contains |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
不过有一个问题,
传的fqcn为tech.insight.ShengSheng
但目录中只有"加密.class",所以我把路径写死了( String rootFile = System.getProperty("user.dir").concat(".加密".replace('.', File.separatorChar)).concat(".class");)