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

MP native image no longer misses bean types for proxies. #1988

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

tomas-langer
Copy link
Member

Signed-off-by: Tomas Langer tomas.langer@oracle.com

Fixes #1983

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
@tomas-langer tomas-langer added this to the 2.0.0 milestone Jun 11, 2020
@tomas-langer tomas-langer self-assigned this Jun 11, 2020
if (!processed.add(clazz)) {
Set<Type> beanTypes = bean.getTypes();

BeanId id = new BeanId(bean.getBeanClass(), beanTypes);
Copy link
Member

Choose a reason for hiding this comment

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

Depending on how proper you want to be, you may want to see if the bean is PassivationCapable and if so use the return value of its getId() method.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we can live with a certain amount of improper, unless this would fail for some cases.

@romain-grecourt romain-grecourt merged commit 61c97a9 into helidon-io:master Jun 16, 2020
@tomas-langer tomas-langer deleted the 1983-mp-native branch June 24, 2020 13:55
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.

MP Native image error
3 participants