Closed thekalinga closed 2 years ago
@snicoll Same happen with Spring Boot 3 snapshots, should we ask creating an issue on Spring Framework 6 side?
Thanks for the fix. Does this fix address all of these aswell?
PS: I havent tried with org.springframework.core.Ordered, javax.annotation.Priority, org.springframework.core.PriorityOrdered & other ways to specify order. Issue might exist even there too. Please check if the issue occurs even with that.
When I create a native image of spring application that uses
@Order
, native executable doesnt respect@Order
specified while the non-native image version respects it.When I run native image (
./gradlew nativeCompile
) I get the following output (ordered based on classname)If I run the same program in regular JVM, I get the following output (correctly ordered based on
@Order
)Version info
Ubuntu 20.04.4 LTS
22.2.r17-grl
PS: I havent tried with
org.springframework.core.Ordered
,javax.annotation.Priority
,org.springframework.core.PriorityOrdered
& other ways to specify order. Issue might exist even there too. Please check if the issue occurs even with that.