Skip to content

ARIES-2165: Make the objenesis import mandatory in proxy-impl - #913

Merged
jbonofre merged 1 commit into
apache:trunkfrom
holgerfriedrich:pr-obj-mandatory
Sep 20, 2026
Merged

jbonofre merged 1 commit into
apache:trunkfrom
holgerfriedrich:pr-obj-mandatory

Conversation

@holgerfriedrich

@holgerfriedrich holgerfriedrich commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Since #414 ProxySubclassGenerator references org.objenesis directly, so the class cannot be loaded without it. AsmProxyManager.isProxyClass() loads that class for every proxy, including interface-only ones, so with the import declared optional a bundle resolves and then fails with NoClassDefFoundError: org/objenesis/Objenesis on the first proxy.

If you want to keep it strictly optional, then we would need to restructure and use Objenesis only for those cases where it is required.

Discovered when I had to add a new dep to the feature in apache/karaf#2214 to fix tests - though feature resolution was fine before.

@github-actions github-actions Bot added the proxy label Sep 19, 2026
@jbonofre
jbonofre self-requested a review September 20, 2026 03:32
@alien11689 alien11689 changed the title Make the objenesis import mandatory in proxy-impl ARIES-2165: Make the objenesis import mandatory in proxy-impl Sep 20, 2026
@jbonofre
jbonofre merged commit 72f71cb into apache:trunk Sep 20, 2026
10 checks passed
@holgerfriedrich
holgerfriedrich deleted the pr-obj-mandatory branch September 20, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants