-
Enhancement
-
Resolution: Unresolved
-
P4
-
9, 10
-
None
As a follow-up to stripping annotations from type mirrors returned by methods in Types (JDK-8042981), it would be helpful to provide methods to add annotations. Sketch of a proposal:
<T extends TypeMirror> T withAnnotations(T typeMirror, List<? extends
AnnotationMirror> annotations)
<T extends TypeMirror> T withAnnotations(T typeMirror,
AnnotatedConstruct annotationHost)
http://mail.openjdk.java.net/pipermail/compiler-dev/2014-May/008782.html
<T extends TypeMirror> T withAnnotations(T typeMirror, List<? extends
AnnotationMirror> annotations)
<T extends TypeMirror> T withAnnotations(T typeMirror,
AnnotatedConstruct annotationHost)
http://mail.openjdk.java.net/pipermail/compiler-dev/2014-May/008782.html
- relates to
-
JDK-8042981 Strip type annotations in Types' utility methods
- Closed