-
Bug
-
Resolution: Fixed
-
P4
-
6
-
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.
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.
- relates to
-
JDK-4420532 JLS2: Observability of a package is circularly defined
-
- Closed
-