注解处理器路线:编译期通过 javac AST 修改实现 @CopyTo,零配置。
用户只需在编译 classpath 引入本 jar,javac 通过 SPI 自动发现运行。
注意:访问 com.sun.tools.javac.* 内部 API。
- JDK 8:需 tools.jar(见下方 profile 自动激活)
- JDK 9+:通过 JavacModulePatcher 自举解决模块访问限制,无需手动配置 VM 参数
Version0.0.2-RELEASEcompared with
Version Details
| 0.0.1-RELEASE | 0.0.2-RELEASE | |
|---|---|---|
| Release date | Jun 12, 2026 | Jun 12, 2026 |
| Licenses | Apache 2.0 | Apache 2.0 |
| Vulnerabilities | None | None |
Compile Changes (1)
| 0.0.1-RELEASE | 0.0.2-RELEASE | ||
|---|---|---|---|
| Change | Group / Artifact | Previous | Current |
| ~ Updated | io.github.shenbinglife » copy-tools-annotation | 0.0.1-RELEASE | 0.0.2-RELEASE |