JDK-6993311 : annotations on packages are not validated
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-19
  • Updated: 2013-12-03
  • Resolved: 2011-04-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b136Fixed
Related Reports
Relates :  
Relates :  
Description
annotations on packages are not validated (i.e. that the errors are not correctly reported for these annotations)

See http://hg.netbeans.org/main/nb-javac/rev/584dfd1a6cf1

Comments
EVALUATION Better fix is to detect the toplevel env in Attr and check package annotations then.
15-03-2011

EVALUATION See fix in link in description
12-03-2011