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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: 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

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

              Created:
              Updated: