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

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

XMLWordPrintable

    • b70
    • Verified

        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

              sadayapalam Srikanth Adayapalam (Inactive)
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: