Skip to content

Fixes OSGi exports for feign-form - #3588

Merged
velo merged 1 commit into
OpenFeign:masterfrom
IT-Althusser:fix/form-osgi-exports
Oct 2, 2026
Merged

velo merged 1 commit into
OpenFeign:masterfrom
IT-Althusser:fix/form-osgi-exports

Conversation

@IT-Althusser

Copy link
Copy Markdown
Contributor

The duplicate Export-Package instructions in form/pom.xml cause the bundle plugin to retain only feign.form.multipart. As a result, FormEncoder is packaged in the JAR but its feign.form package 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:

  • Built the baseline and patched feign-form reactor 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.
  • Parsed both packaged JAR manifests using java.util.jar.JarFile and Bnd Parameters. The baseline exported only feign.form.multipart; the patched JAR exports feign.form, feign.form.multipart, and feign.form.util. Confirmed that FormEncoder.class is present.
  • git diff --check passed.

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

Combine the bundle export instructions so FormEncoder and form subpackages are visible to OSGi consumers.

Fixes OpenFeign#3585
@velo
velo merged commit 2d9a598 into OpenFeign:master Oct 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feign-form OSGi Export-Package header is incorrect

2 participants