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

Better diagnostics for non-applicable type annotations

    Details

    • Subcomponent:
    • Introduced In Version:
      8

      Description

      Currently the only diagnostic which indicates that a type annotation cannot be applied to a given piece of syntax reads "cannot annotate scoping construct". This is unclear and in some cases, outright misleading (particularly for annotations on .class expressions). There ought to be better diagnostics.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              emc Eric Mccorkle
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: