Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELYEE-30 Change bean class of produced beans #22

Merged
merged 1 commit into from
May 23, 2023

Conversation

manovotn
Copy link
Contributor

beanClass attribute of beans is used by Weld to determine how and where to define a proxy class. In WFLY, it is used to determine a module whose CL is then used. Default beanClass for synthetic beans is always their extension class. It can be arbitrary class but using this interface means that Weld will try to create the proxy under Jakarta API module which has no Weld dependencies and that will trigger a WARN message.

Related WFLY issue - https://issues.redhat.com/browse/WFLY-17086
Original WFLY PR - wildfly/wildfly#16155

I am not sure if this should also go into 2.x branch or if it needs a separate issue. Feel free to take it over in any form or shape; I mainly created it as a proposed solution to the original problem :)

CC @Skyllarr

@Skyllarr
Copy link
Contributor

@manovotn Thank you! The 3.x branch should be enough. I created affiliated issue for this https://issues.redhat.com/browse/ELYEE-30 . Can you please add the ELYEE-30 issue number to the commit?

@Skyllarr
Copy link
Contributor

@darranl Can you please review?

@manovotn manovotn changed the title Change bean class of produced beans ELYEE-30 Change bean class of produced beans Oct 18, 2022
@manovotn
Copy link
Contributor Author

@manovotn Thank you! The 3.x branch should be enough. I created affiliated issue for this https://issues.redhat.com/browse/ELYEE-30 . Can you please add the ELYEE-30 issue number to the commit?

Sure, done

@Skyllarr
Copy link
Contributor

Skyllarr commented Oct 24, 2022

@manovotn This code was taken from upstream so I created related PR for soteria with your commit here eclipse-ee4j/soteria#338

@Skyllarr
Copy link
Contributor

@fjuma The upstream PR got merged: eclipse-ee4j/soteria#338 . I think we can go ahead and merge this PR as well? The files that are being changed by this PR are in the subfolder "original". But since the upstream PR got merged we can merge this to the original as is?

@istudens
Copy link

EAP 8.0 Quickstarts bump into this issue again. Can this fix be merged?

@Skyllarr
Copy link
Contributor

Skyllarr commented May 17, 2023

@istudens @fjuma This fix was merged and released in soteria 3.0.2 : https://github.com/eclipse-ee4j/soteria/releases/tag/3.0.2-RELEASE , so i think when wildfly upgrades soteria to 3.0.2 this problem should be resolved in quickstarts. This PR can be closed if that is the case AFAIU

@darranl
Copy link
Contributor

darranl commented May 17, 2023

@Skyllarr FYI we will likely need this as well whilst we are duplicating the Soteria classes but I think we can consider the upstream merge sufficient review.

Copy link
Contributor

@fjuma fjuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @manovotn!

@fjuma fjuma merged commit 5a91e13 into wildfly-security:3.x May 23, 2023
@manovotn manovotn deleted the 3.x branch May 23, 2023 21:14
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.

5 participants