The functionality of javadoc's WorkArounds.isSynthesized should be provided by
Elements.getOrigin​(AnnotatedConstruct c, AnnotationMirror a) == Origin.MANDATED
If that is *not* the case, the operation of getOrigin for annotation should be examined.
Recent work onJDK-8005295 indicates the mandated information is being set as expected for compiler-generated container annotations use for repeating annotations.
Elements.getOrigin​(AnnotatedConstruct c, AnnotationMirror a) == Origin.MANDATED
If that is *not* the case, the operation of getOrigin for annotation should be examined.
Recent work on
- relates to
-
JDK-8250919 Mark compiler-generated elements as mandated
-
- Open
-
-
JDK-8005295 Use mandated information for printing of repeating annotations
-
- Resolved
-
-
JDK-8163315 Implement an API to identify an implicitly declared annotation (or declaration)
-
- Resolved
-
-
JDK-8264866 Remove unneeded WorkArounds.isAutomaticModule
-
- Resolved
-