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

Andreas Lehmkühler commented on PDFBOX-2088:
--------------------------------------------

Those API changes were introduced with bc 1.47. If we remove all deprecated 
calls, one can switch to 1.50 if needed.

I've removed the deprecated bouncy castle calls in revision 1599005. The pdfbox 
module now uses bouncy castle >= 1.47 compatible calls only.

TODO: remove the deprecated calls from the examples package

> Support Bouncycastle 1.50
> -------------------------
>
>                 Key: PDFBOX-2088
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2088
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.8.5
>         Environment: Fedora Rawhide
>            Reporter: Orion Poplawski
>
> Fedora Rawhide has moved on to bouncycastle 1.50.  Unfortunately this breaks 
> pdfbox:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) 
> on project pdfbox: Compilation failure: Compilation failure:
> [ERROR] 
> /builddir/build/BUILD/pdfbox-1.8.4/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[40,29]
>  cannot find symbol
> [ERROR] symbol:   class DERObject
> [ERROR] location: package org.bouncycastle.asn1
> [ERROR] 
> /builddir/build/BUILD/pdfbox-1.8.4/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[379,13]
>  cannot find symbol
> [ERROR] symbol:   class DERObject
> [ERROR] location: class 
> org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler
> [ERROR] 
> /builddir/build/BUILD/pdfbox-1.8.4/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[186,49]
>  method getContent in class org.bouncycastle.cms.RecipientInformation cannot 
> be applied to given types;
> [ERROR] required: org.bouncycastle.cms.Recipient
> [ERROR] found: java.security.Key,java.lang.String
> [ERROR] reason: actual and formal argument lists differ in length
> [ERROR] 
> /builddir/build/BUILD/pdfbox-1.8.4/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[312,17]
>  cannot find symbol
> [ERROR] symbol:   class DERObject
> [ERROR] location: class 
> org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler
> [ERROR] 
> /builddir/build/BUILD/pdfbox-1.8.4/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[390,9]
>  cannot find symbol
> [ERROR] symbol:   class DERObject
> [ERROR] location: class 
> org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler
> [ERROR] 
> /builddir/build/BUILD/pdfbox-1.8.4/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[403,29]
>  reference to EnvelopedData is ambiguous
> [ERROR] both constructor 
> EnvelopedData(org.bouncycastle.asn1.cms.OriginatorInfo,org.bouncycastle.asn1.ASN1Set,org.bouncycastle.asn1.cms.EncryptedContentInfo,org.bouncycastle.asn1.ASN1Set)
>  in org.bouncycastle.asn1.cms.EnvelopedData and constructor 
> EnvelopedData(org.bouncycastle.asn1.cms.OriginatorInfo,org.bouncycastle.asn1.ASN1Set,org.bouncycastle.asn1.cms.EncryptedContentInfo,org.bouncycastle.asn1.cms.Attributes)
>  in org.bouncycastle.asn1.cms.EnvelopedData match
> [ERROR] 
> /builddir/build/BUILD/pdfbox-1.8.4/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[406,27]
>  cannot find symbol
> [ERROR] symbol:   method getDERObject()
> [ERROR] location: variable contentinfo of type 
> org.bouncycastle.asn1.cms.ContentInfo



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to