1.1 --- a/src/share/classes/com/sun/tools/javac/tree/JCTree.java Mon Nov 14 08:09:47 2011 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/tree/JCTree.java Mon Nov 14 15:11:10 2011 -0800 1.3 @@ -39,6 +39,7 @@ 1.4 import com.sun.tools.javac.code.*; 1.5 import com.sun.tools.javac.code.Scope.*; 1.6 import com.sun.tools.javac.code.Symbol.*; 1.7 +import com.sun.tools.javac.parser.EndPosTable; 1.8 import com.sun.source.tree.*; 1.9 1.10 import static com.sun.tools.javac.code.BoundKind.*; 1.11 @@ -450,7 +451,7 @@ 1.12 } 1.13 1.14 // for default DiagnosticPosition 1.15 - public int getEndPosition(Map<JCTree, Integer> endPosTable) { 1.16 + public int getEndPosition(EndPosTable endPosTable) { 1.17 return TreeInfo.getEndPos(this, endPosTable); 1.18 } 1.19 1.20 @@ -467,7 +468,7 @@ 1.21 * @param docComments A hashtable that stores all documentation comments 1.22 * indexed by the tree nodes they refer to. 1.23 * defined only if option -s is set. 1.24 - * @param endPositions A hashtable that stores ending positions of source 1.25 + * @param endPositions An object encapsulating ending positions of source 1.26 * ranges indexed by the tree nodes they belong to. 1.27 * Defined only if option -Xjcov is set. 1.28 */ 1.29 @@ -481,7 +482,7 @@ 1.30 public StarImportScope starImportScope; 1.31 public Position.LineMap lineMap = null; 1.32 public Map<JCTree, String> docComments = null; 1.33 - public Map<JCTree, Integer> endPositions = null; 1.34 + public EndPosTable endPositions = null; 1.35 protected JCCompilationUnit(List<JCAnnotation> packageAnnotations, 1.36 JCExpression pid, 1.37 List<JCTree> defs,