Repository navigation
Fixes OSGi exports for feign-form - #3588
Merged
Merged
Conversation
Combine the bundle export instructions so FormEncoder and form subpackages are visible to OSGi consumers. Fixes OpenFeign#3585
velo
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The duplicate
Export-Packageinstructions inform/pom.xmlcause the bundle plugin to retain onlyfeign.form.multipart. As a result,FormEncoderis packaged in the JAR but itsfeign.formpackage is not exported to OSGi consumers.Use a single
feign.form,feign.form.*instruction, as proposed in the issue, to export the form package and its subpackages. This changes only bundle metadata and adds no dependencies.Validation:
feign-formreactor with the development profile. Core: 734 tests, 4 skipped; Jackson: 24 tests; form: 46 tests. All three modules reported zero failures and zero errors on both completed builds.java.util.jar.JarFileand BndParameters. The baseline exported onlyfeign.form.multipart; the patched JAR exportsfeign.form,feign.form.multipart, andfeign.form.util. Confirmed thatFormEncoder.classis present.git diff --checkpassed.Local environment: Windows, JDK 25, Maven 3.9.4. The build used
-Pdev -pl form -am package,-Dtoolchain.skip=true, and-Dmaven.compiler.proc=full. Short temporary paths were used for local sockets. JUnit temporary-directory cleanup was deferred until after the test JVM exited because existing client tests leave log files open on Windows; no test assertions were skipped by this setting. Build scan uploads were disabled.An OSGi container integration test was not run.
Fixes #3585