1.1 --- a/src/share/classes/com/sun/tools/javac/tree/EndPosTable.java Wed Jul 17 19:16:12 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/tree/EndPosTable.java Fri Jul 19 07:22:53 2013 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -43,10 +43,17 @@ 1.11 public int getEndPos(JCTree tree); 1.12 1.13 /** 1.14 + * Store ending position for a tree, the value of which is the greater of 1.15 + * last error position and the given ending position. 1.16 + * @param tree The tree. 1.17 + * @param endpos The ending position to associate with the tree. 1.18 + */ 1.19 + public abstract void storeEnd(JCTree tree, int endpos); 1.20 + 1.21 + /** 1.22 * Give an old tree and a new tree, the old tree will be replaced with 1.23 * the new tree, the position of the new tree will be that of the old 1.24 * tree. 1.25 - * not exist. 1.26 * @param oldtree a JCTree to be replaced 1.27 * @param newtree a JCTree to be replaced with 1.28 * @return position of the old tree or Positions.NOPOS for non-existent mapping