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

incorrect diagnostic for use of type annotation out of scope

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: tools

      Description

      compiling this results in an unexpected applicability error in addition to the expected resolve error:

      class Scopes<T extends @TA Object> {

          @Target(ElementType.TYPE_USE)
          @interface TA { };
      }


      Scopes.java:3:25: compiler.err.cant.resolve: kindname.class, TA, ,
      Scopes.java:3:24: compiler.err.annotation.type.not.applicable
      2 errors

        Attachments

          Activity

            People

            • Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              ssides Steve Sides
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: