JDK-7005753 : check array dimension limitations earlier
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2010-12-09
  • Updated: 2011-09-17
Related Reports
Relates :  
Description
4917091 fixes the javac checks for arrays with too many dimensions, but these checks happen in Gen, which is generally to late to be of use to IDEs, which use analyze() (parse/enter/attr/flow) to get the red squiggly lines.   Even those these limitations on the number of dimensions come from JVMS, it would be better to check for these limitations sooner rather than later.

Comments
EVALUATION Add checks into Attr.visitNewArray and Attr.visitTypeArray
09-12-2010