JDK-6983297 : methods missing from NewArrayTree
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-09-08
  • Updated: 2013-10-09
  • Resolved: 2013-08-10
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 8
8 b105Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
NewArrayTree does not provide access to the annotations of dimAnnotations fields.

Comments
There are cases like ModifiersTree which do provide an API for accessing annotations, so I think that we should do the same here.
31-07-2013

Declaration annotations are accessed directly from the declaration tree (via the modifiers tree). This would imply that the annotations on type trees and "new array" trees should be accessed directly as well.
31-07-2013

The precedent is itself broken. You get annotations from type trees via AnnotatedTypeTree. Uugh.
31-07-2013

Design issue here is where to put the API. i.e. does the functionality go on NewArrayTree or on helper classes
31-07-2013

EVALUATION This affects TreeScanner and the corresonding (new) SourceTreeScannerTest
08-09-2010