Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8341779 [REDO BACKPORT] type annotations are not visible to javac plugins across compilation boundaries
  3. JDK-8341780

CLONE - Release Note: `TypeMirror` Changed to Provide Annotations for Types Loaded from Bytecode

XMLWordPrintable

      The implementation of `TypeMirror` now provides access to annotations for types loaded from bytecode. Previously type annotations were not associated with types loaded from bytecode.

      Annotation processors can access type annotations for elements using `AnnotationMirror#getAnnotationMirrors`, and the annotations will be included in the output of `AnnotationMirror#toString`.

      Any programs that relied on annotations being omitted for elements loaded from the classpath should be updated to handle type annotations.

            cushon Liam Miller-Cushon
            cushon Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: