JDK-8264869 : Investigate replacing WorkArounds.isSynthesized
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2021-04-07
  • Updated: 2021-04-08
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
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 on JDK-8005295 indicates the mandated information is being set as expected for compiler-generated container annotations use for repeating annotations.