JDK-6185439 : Improve error recovery in javac
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-10-27
  • Updated: 2010-04-02
  • Resolved: 2005-02-18
Related Reports
Duplicate :  
Description
When a parse error is found, javac's Parser replaces the partial tree it was building with an Erroneous tree.  NetBeans needs those partial trees to improve its error reporting capabilities.
###@###.### 10/27/04 20:33 GMT

Comments
SUGGESTED FIX In syntaxError, only create a new Erroneous tree if needed. Elsewhere, create new Erroneous trees with correct positions instead of sharing a single tree. ###@###.### 10/27/04 20:33 GMT
27-10-2004