If https://github.com/oracle/graal/issues/2594 get fixed in time we should probably reintroduce GraalDetector
renamed to NativeDetector
for a wider scope (could be useful for Project Leyden). It was removed via https://github.com/spring-projects/spring-framework/commit/806eb5c93391e2757b2210297ff58b3254ef9876.
Comment From: sdeleuze
@jhoeller I got the confirmation the related GraalVM issue will fixed in 20.3 but not in time for our 5.3 GA, could we create a 5.3.1 milestone and target it for this issue resolution?
Comment From: sdeleuze
Blocked on https://github.com/oracle/graal/issues/2594.
Comment From: sdeleuze
Sadly the related GraalVM issue did not make it in 20.3.0 so we will have to wait 21.0.0. I asked for early inclusion in order to give us the time to test and provide feedback.
Comment From: sdeleuze
GraalVM now allows to use such utility method to detect native image runtime when the -H:+InlineBeforeAnalysis
flag is used, which will be enabled by default in Spring Native. See https://github.com/oracle/graal/issues/2594#issuecomment-754701898 related comment.