Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,11 @@ static void fillInTreePositions(CompilationInfo info, Tree forTree, Object[] tar
int[] span = null;
switch(forTree.getKind()) {
case CLASS:
if ((int) target[1] >= 0 && (int) target[2] == -1) {
// Compact Source file (JEP 512) issue implicit class end position not found in code
// see JDK-8364015
target[2] = (int) info.getTrees().getSourcePositions().getEndPosition(cu, cu);
}
case INTERFACE:
case ENUM:
case ANNOTATION_TYPE:
Expand Down
Loading