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

type annotation on a qualified type causes spurious 'cannot find symbol' errors

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b70
    • Verification:
      Verified

      Backports

        Description

        Compiling the following program:

        abstract class Foo implements @TA java.util.Map { }

        @java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE_USE)
        @interface TA { }

        results in the following:

        Main.java:1: error: cannot find symbol
        abstract class Foo implements @TA java.util.Map { }
                                          ^
          symbol: class java
        1 error

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sadayapalam Srikanth Adayapalam
                Reporter:
                mcimadamore Maurizio Cimadamore
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: