Min Su
Min Su

Reputation: 19

iText 2.1.7 requires Bouncy Castle 1.38, can I use Bouncy Castle 1.47 instead?

iText 2.1.7 requires Bouncy Castle 1.38, but I have Bouncy Castle 1.47 to support other new libraries.

I don't want to put different versions, can I just use Bouncy Castle 1.47 with iText 2.1.7?

Upvotes: 1

Views: 2568

Answers (1)

user7605325
user7605325

Reputation:

I don't think you can, because in Bouncy Castle versions >= 1.47 there were lots of changes in the API (check this link).

The most significative change, that would not allow you to do a smooth change in your code, are the classes and methods that had the names changed - check the "ASN.1 Changes" section in the link above.

Most of these are "base" classes and interfaces, like ASN1Object and ASN1Encodable, so changing the versions will probably make iText stop working (unless you find a version compatible with Bouncy Castle >= 1.47).


But that's just my guess, based on the changes made in the API (and my own experience when migrating to newer Bouncy Castle versions - although I didn't use iText). Anyway, it's worth trying and see what happens.

Upvotes: 3

Related Questions