Skip to content

fix(core.gradle-plugin): 修复在 Windows 平台连续 gradle clean 打包失败的问题#1425

Merged
shifujun merged 1 commit intoTencent:masterfrom
yanglw:dev
Mar 3, 2026
Merged

fix(core.gradle-plugin): 修复在 Windows 平台连续 gradle clean 打包失败的问题#1425
shifujun merged 1 commit intoTencent:masterfrom
yanglw:dev

Conversation

@yanglw
Copy link
Contributor

@yanglw yanglw commented Mar 3, 2026

transform-temp.jar 文件被新创建的 ClassPool 持有访问且没有释放,导致在 Windows 环境下 gradle clean 无法删除 transform-temp.jar 。新的方案是基于 IO 流读取 transform-temp.jar 文件中的 class 文件,并创建 CtClass 导入 ClassPool 中,避免 ClassPool 对 transform-temp.jar 文件持有访问。

transform-temp.jar 文件被新创建的 ClassPool 持有访问且没有释放,导致在 Windows 环境下 gradle clean 无法删除 transform-temp.jar 。新的方案是基于 IO 流读取 transform-temp.jar 文件中的 class 文件,并创建 CtClass 导入 ClassPool 中,避免 ClassPool 对 transform-temp.jar 文件持有访问。
@tencent-adm
Copy link
Member

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.

@shifujun shifujun merged commit 45bb5d0 into Tencent:master Mar 3, 2026
11 of 12 checks passed
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

Successfully merging this pull request may close these issues.

3 participants