Java8 移除了APT以及mirror API后,使用Pluggable Annotation Processing API
来源:互联网 发布:java软件工程师就业班 编辑:程序博客网 时间:2024/05/22 13:08
官方原文:
Goals:
By removing apt from the JDK, annotation processing can finish transitioning
to the superior, standardized JSR 269 API.
The apt annotation processing framework is JDK-specific and dates back to JDK
5. The functionality of the API was standardized with JSR 269, which shipped
as part of Java SE 6. In JDK 7, the entirety of the apt API was deprecated.
Impacts:
After this change, users of annotation processing will have to use the JSR
269 annotation processing facility, which has been supported in javac since
JDK 6. Since apt is just part of the JDK and not part of Java SE, there is a
looser compatibility contract around this component than around an API in
java.* or javax.*. The removal of a command line tool from the JDK is not
unprecedented, but the removal of apt should be clearly described in the
release notes and similar documents.
意味着Java8以后不再默认包含APT了,并且相关的资源都被移除了比如Mirror相关类,取而代之的是Pluggable Annotation Processing API,新的API使用方式略有不同,但是思想统一,操作起来还是比较方便的。
学习资源:
最近就使用新的Pluggable Annotation Processing API写了一个编译时注解处理的库,感兴趣的可以去github(地址)下载,拜托给个Start吧/(ㄒoㄒ)/~~,写了好久了,有任何问题,欢迎留言~
- Java8 移除了APT以及mirror API后,使用Pluggable Annotation Processing API
- JCP:JSR 269 Pluggable Annotation Processing API
- 插入式注解处理API(Pluggable Annotation Processing API)
- 插入式注解处理API(Pluggable Annotation Processing API)
- 插入式注解处理API(Pluggable Annotation Processing API)
- Java 8为什么会移除APT以及mirror API?
- JDK6的新特性之六:插入式注解处理API(Pluggable Annotation Processing API)
- JDK6的新特性之六:插入式注解处理API(Pluggable Annotation Processing API)
- Java8 Stream API使用
- 使用Java8进行API设计
- 谷歌眼镜开发Mirror API之API使用案例
- java annotation processing tools(APT)实例解析
- 使用java8新特性流API
- Java8中使用APT
- Processing API Structure(1)
- Processing API Structure(2)
- 使用dataBinding出现Warning:Using incompatible plugins for the annotation processing: android-apt.
- 使用apt导入时报警告:Warning:Using incompatible plugins for the annotation processing: android-apt. This may
- [数据表设计] - 商品模型数据架构图
- Java集合框架总结
- [yii2] -- [ActiveForm] -- ActiveForm的使用方法
- 可变参数
- Recovery 下mi debug方法
- Java8 移除了APT以及mirror API后,使用Pluggable Annotation Processing API
- 样式优先级CSS优先级CSS样式权重
- 百度文库转载高通手机开发概述
- CentOS 6.5搭建Nexus Maven私服
- JDBC操作数据库基本步骤
- 使用vue.js实现checkbox的全选,和多个的删除
- java字符串转换List map
- JS常见代码块,持续更新......
- 8.内部类