I figure out the issue cause in AnnotationMapper class, when it tries to get annotation text it didn`t check when the annotation if of the type IText, so just add new clause.
public class AnnotationMapper {
...
public static AnnotationDataEntity mapAnnotationDataEntity(AnnotationBase annotationInfo, PageInfo pageInfo) {
...
String text = "";
if (annotationInfo.getMessage() == null && annotationInfo instanceof ITextToReplace) {
text = ((ITextToReplace) annotationInfo).getTextToReplace();
//NEW CODE
} else if (annotationInfo instanceof IText && ((IText) annotationInfo).getText() != null) {
text = ((IText) annotationInfo).getText();
}else if (annotationInfo.getMessage() != null) {
text = annotationInfo.getMessage();
}
annotation.setText(text);
...
}
}
The issues you have found earlier (filed as ANNOTATIONJAVA-1336) have been fixed in this update. This message was posted using Bugs notification tool by vitaliy.rezchikov