[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to