JDK-4997354 : Tree.Modifiers class needs better position support
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-02-19
  • Updated: 2005-02-18
  • Resolved: 2005-02-18
Related Reports
Duplicate :  
Description
The new com.sun.tools.javac.tree.Tree.Modifiers class currently doesn't set the source position, making source file referencing difficult.  TreeMaker.Modifiers should be updated to set the beginning position correctly.  The parser should be enhanced to use TreeMaker.Modifiers instead of "new Modifiers", and set the endPos of the tree.

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

EVALUATION Updated Parser to report accurate start and end positions. This required fixing Annotation positions to start at the '@' token, rather than the start of the following identifier. ###@###.### 2004-02-23
23-02-2004