Skip to content

Commit

Permalink
WELD-2796 Bundle imports for built-in bean proxies
Browse files Browse the repository at this point in the history
When a client proxy is created for a built-in bean, it may be loaded
using the classloader of the weld osgi bundle because it provides the
built-in bean.

This means that the bundle should import all the packages necessary to
load the proxy class, which may include packages that the code in the
bundle doesn't directly reference.

The following package imports are added:
- jakarta.servlet.descriptor (for ServletContext)
- javax.security.auth (for Principal)
  • Loading branch information
Azquelt committed Aug 23, 2024
1 parent ffd8a83 commit 6796289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bundles/osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@
jakarta.interceptor.*; version=!,
jakarta.persistence; version=!; resolution:=optional,
jakarta.servlet.*; version=!; resolution:=optional,
jakarta.servlet.descriptor; version=!; resolution:=optional,
jakarta.transaction; version=!; resolution:=optional,
jakarta.validation.*; version=!; resolution:=optional,
javax.security.auth; version=!; resolution:=optional,
org.apache.bcel.*; resolution:=optional,
org.jboss.logging.annotations; resolution:=optional,
sun.*; resolution:=optional,
Expand Down

0 comments on commit 6796289

Please sign in to comment.