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

@Order is not available in native image #28988

Closed
snicoll opened this issue Aug 22, 2022 · 2 comments
Closed

@Order is not available in native image #28988

snicoll opened this issue Aug 22, 2022 · 2 comments
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Milestone

Comments

@snicoll
Copy link
Member

snicoll commented Aug 22, 2022

See spring-attic/spring-native#1694

@snicoll snicoll added type: bug A general bug theme: aot An issue related to Ahead-of-time processing labels Aug 22, 2022
@snicoll snicoll added this to the 6.0.0-M6 milestone Aug 22, 2022
@snicoll snicoll self-assigned this Aug 22, 2022
@snicoll
Copy link
Member Author

snicoll commented Aug 22, 2022

It's actually not working on the JVM either (with an @Order specified on the class).

@snicoll
Copy link
Member Author

snicoll commented Aug 22, 2022

That's because a GenericApplicationContext doesn't have the required comparator by default. We should add beanFactory.setDependencyComparator(AnnotationAwareOrderComparator.INSTANCE);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant