Skip to content

Backported: Fix java compilation warnings#1123

Merged
jacopoc merged 7 commits into
apache:release24.09from
jacopoc:release/fix-java-compilation-warnings
Apr 18, 2026
Merged

Backported: Fix java compilation warnings#1123
jacopoc merged 7 commits into
apache:release24.09from
jacopoc:release/fix-java-compilation-warnings

Conversation

@jacopoc
Copy link
Copy Markdown
Contributor

@jacopoc jacopoc commented Apr 18, 2026

No description provided.

jacopoc and others added 7 commits April 17, 2026 18:53
… deprecated methods in the org.apache.commons.cli library

(cherry picked from commit 644e4d3)
…ations to resolve compilation warnings

(cherry picked from commit 685c194)
…olve compilation warnings

(cherry picked from commit 451c414)
… resolve compilation warnings

(cherry picked from commit c3085df)
After moving from lowagie to openPDF (OFBIZ-13300),
getFields() in AcroFields is deprecated.

Contrary to what I wrote in OFBIZ-13306, it's not related to
"Upgrade java version to 21"

This fixes it (present only in PdfSurveyServices class).

I have also improved pdfStamper.close() missing in 2 places
(almost fixed but OFBIZ-13300 was not backported, better to keep things simple).
In one case I added it, in the other I used try-with-ressource.

I also put a comment about openpdf:1.3.43 being the last version with
com.lowagie.text embedded that is used (only) by PdfSurveyServices class.

Also some formatting

(cherry picked from commit 8e492c2)
@jacopoc jacopoc self-assigned this Apr 18, 2026
@jacopoc jacopoc merged commit f315117 into apache:release24.09 Apr 18, 2026
5 checks passed
@jacopoc jacopoc deleted the release/fix-java-compilation-warnings branch April 18, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants