-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iText 2.x compatibility issue in recent OpenPDF versions #274
Comments
Perhaps this issue also impacts other software or applications using or trying to use OpenPDF as a replacement for iText 2.1.7. The compatibility between OpenPDF 1.3.x and iText 2.1.7 may be restored by adding: public boolean add(Object o) {
if (o instanceof String) {
return add((String) o);
}
if (o instanceof RtfElementInterface) {
return super.add(o);
}
return add((Element) o);
} I think it's worth it to keep compatibility. |
It's not easy because Phrase extends ArrayList <Element> |
@albfernandez I think you are right. We should revert these changes. And redo them in another Major Version. |
Maybe it was time to break API compatibility with iText, in this small way, as part of the modernization efforts. People should update from old iText versions to OpenPDF anyway, to get all the latest security fixes and bugfixes. |
So... how about branch now a 1.3 release and a 2.0 release (e.g. in master). In the 2.0 release we can continue the modernization, and we break the compatibility even more, and in the 1.3 line, we try to keep the compatibility (and restore any broken issues)? |
I think it's easier to maintain a 1.2.x (java7) branch and try to backport there the important fixes. I'm not sure in doing a "break" release. We use some libraries which use OpenPDF / itext, if we break compatibility, we must stuck in old versions until all libraries upgrade to the new release. |
Mhhhh… being "drop-in" replacement for iText 2.x (or, the few that knew it, 4.x) is a strong use-case for OpenPDF in many situations, I'd be nice to have a (somewhat maintained) branch of that available in the future too (which, of course, can have much less changes/updates than any main branch), it would be a shame to lose that. |
Is there any known issues on the API not beeing a drop-in replacemant for iText? |
Looks like this was fixed here: javamelody/javamelody#788 |
javamelody/javamelody#788 (comment)
The text was updated successfully, but these errors were encountered: