Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8320562

add a standard way to retrieve type annotations applied to the return type of a constructor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • tools
    • None

      Fix for JDK-8225377 made effort to retrieve type annotations from the class file and add them to the corresponding type. This surfaced an old problem which is that there isn't a standard way to retrieve type annotations applied to a constructor return's type. Currently developers have to manually get those annotations from the AST or from the classfile. Having a standard API to retrieve them both from source and bytecode would be very desirable. See also the discussion at: https://github.com/openjdk/jdk/pull/16774

            vromero Vicente Arturo Romero Zaldivar
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: