JDK-4994049 : Add support for accurate begin/end positions
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 2.0,5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_7,solaris_8
  • CPU: generic
  • Submitted: 2004-02-12
  • Updated: 2006-03-14
  • Resolved: 2005-03-04
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 6
6 b27Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
The javac compiler provides source buffer position information for trees for error reporting.  This information isn't sufficient for syntax-directed editors, which need to be able to calculate the exact span of characters that map to a given tree.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
08-07-2004

WORK AROUND The only workaround is to hieristically scan the token stream and guess the actual start and end positions, which can be very problematic.
08-07-2004

EVALUATION ok. The big question is: are these the end position of the last token in the yield, or the beginning position of the last token in the yield? ###@###.### 2004-02-23
23-02-2004