You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (Jira)" <ji...@apache.org> on 2019/12/25 17:32:00 UTC

[jira] [Comment Edited] (PDFBOX-4669) Ensure proper functionality of COSArrayList

    [ https://issues.apache.org/jira/browse/PDFBOX-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17003333#comment-17003333 ] 

Maruan Sahyoun edited comment on PDFBOX-4669 at 12/25/19 5:31 PM:
------------------------------------------------------------------

while working on the removeAll method I found the following issue:
{code:java}
annotations.get(0).equals(annotations.get(1)) 
{code}
is {{false}} where
{code:java}
annotations.get(0).getCOSObject().equals(annotations.get(1).getCOSObject())
{code}
is {{true}}

Shouldn't the first test also be true when the second one is?

[~lehmi] [~tilman] WDYT?


was (Author: msahyoun):
while working on the removeAll method I found the following issue:
{code:java}
annotations.get(0).equals(annotations.get(1)) 
{code}
is {{false}} where
{code:java}
annotations.get(0).getCOSObject().equals(annotations.get(1).getCOSObject())
{code}
is {{true}}

Shouldn't the first test also be true?

[~lehmi] [~tilman] WDYT?

> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org