JDK-4922732 : AST too abstract for multiple declarators
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_7
  • CPU: generic
  • Submitted: 2003-09-15
  • Updated: 2005-05-31
  • Resolved: 2005-05-31
Related Reports
Relates :  
Relates :  
Relates :  
Description
Javac's AST for

    int[] a, b[];

cannot be mapped back to the source.  The representation should be modified to model the abstract syntax.

Comments
EVALUATION This must be included in 4813736. ###@###.### 2005-04-08 08:15:20 GMT In general, mapping AST nodes directly to source is very hard and must be worked around in tools which require preservation of sources. It has been explained to me that source rewriting tools are better off preserving the real source code for unchanged ast nodes, rather than relying on the ability to map AST nodes directly back to the original source. Unless presented with a specific (low overhead) solution to the problem, this will not be fixed. ###@###.### 2005-05-31 11:48:42 GMT
31-05-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
03-09-2004