Package statement affected by imports

XMLWordPrintable

    • generic
    • generic
    • Verified

      From: Bruce Chapman & Barbara Carey <###@###.###>
      To: Peter von der Ahé <###@###.###>, Jesse Glick <###@###.###>
      Subject: FYI Submitted to JLS feedback form JLS | javac | Netbeans inconsistency
      Date: Fri, 15 Sep 2006 08:58:23 +1200 (Thu, 13:58 PDT)

      The JLS is pretty clear that the annotation types and any class literal
      values are outside the scope of any import statements and so must be
      (unless from java.lang package) fully qualified.

      Indeed javac (JDK 6 B97, I haven't checked others) does resolve type
      names in annotations on the package statement using imports.

            Assignee:
            Alex Buckley
            Reporter:
            Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: