You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2020/01/19 15:39:00 UTC

[jira] [Resolved] (PDFBOX-4745) COSObjectKey.hashCode doesn't work for generation numbers > 0

     [ https://issues.apache.org/jira/browse/PDFBOX-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-4745.
----------------------------------------
    Resolution: Fixed

I've fixed the issue by shifting the number 4 times, so that generation numbers up to 15 are supported. IMHO that is more than needed although theoretically a generation number could by way much bigger <= 99999

> COSObjectKey.hashCode doesn't work for generation numbers > 0
> -------------------------------------------------------------
>
>                 Key: PDFBOX-4745
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4745
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.18, 3.0.0 PDFBox
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>             Fix For: 2.0.19, 3.0.0 PDFBox
>
>
> The implementation of hashCode in COSObjectKey doesn't work for generation numbers > 0, so that the hash codes for the objects 100 0 and 99 1 share the same value



--
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