[ https://issues.apache.org/jira/browse/PDFBOX-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17003271#comment-17003271 ]
Maruan Sahyoun commented on PDFBOX-4669: ---------------------------------------- The last addition was done to show that using direct objects will work when removing objects from {{COSArrayList}} The same test will fail if trying to remove indirect objects as pointed out in above comment from mkl @ stackoverflow Will work on fixing that. We shall also deprecate the \{{COSArrayList.getCOSArray}} method in 2.0 and remove \{{COSArrayList.toList}} for 3.0. Getting the underlying {{COSArray}} from {{COSArrayList}} would allow for direct manipulation and which will would bring both internal lists out of sync. Doing the same by going a different route to get access to the {{COSArray}} would have the same effect but this way we at least discourage that use. > Ensure proper functionality of COSArrayList > ------------------------------------------- > > Key: PDFBOX-4669 > URL: https://issues.apache.org/jira/browse/PDFBOX-4669 > Project: PDFBox > Issue Type: Sub-task > Components: PDModel > Affects Versions: 2.0.17, 3.0.0 PDFBox > Reporter: Maruan Sahyoun > Assignee: Maruan Sahyoun > Priority: Major > > The current COSArrayList implementation has some glitches as pointed out at > https://stackoverflow.com/questions/45812696/ > In addition when working with {{AnnotationFilter}} as the > adding/update/removal is index based the wron index of the underlying > {{COSArray}} is affected. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org