RFR: JDK-8227923: End position of EndElementTree is -1

Jan Lahoda jan.lahoda at oracle.com
Thu Jul 18 15:53:31 UTC 2019


The end position of some DocTrees (namely EndElementTree, EntityTree and 
CommentTree) is reported as -1 from 
DocTrees.getEndPosition(CompilationUnitTree, DocCommentTree, DocTree)

For EntityTree and CommentTree, the end position can be currently 
computed easily. For EndElementTree, the proposal is to record the end 
position during parsing, as is done for the corresponding StartElementTree.

Proposed webrev: http://cr.openjdk.java.net/~jlahoda/8227923/webrev.00/
JBS: https://bugs.openjdk.java.net/browse/JDK-8227923

How does this look?


More information about the compiler-dev mailing list