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

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

                Created:
                Updated:
                Resolved: