AnnotationModelImpl.getAnnotationIterator(int, int, boolean, boolean) never returns anything #4338
Labels
kind/bug
Outline of a bug - must adhere to the bug report template.
sprint/current
status/code-review
This issue has a pull request posted for it and is awaiting code review completion by the community.
While working on #3957 , I've noticed that using an AnnotationQueryEvent with a range never returned any annotations.
I traced this to the usage of the DocumentPositionMap in AnnotationModelImpl. When annotations are added to the annotation model, their positions are never added to the documentPositionMap. So when the iterator tries use the positions from that map, it's always empty.
Version: master as of March 7, 2017.
The text was updated successfully, but these errors were encountered: