This commit moves the condition used by `@DisabledInAotMode` to a concrete implementation rather than using `@DisabledIf` as it causes build initialization in a native image. Closes gh-31705
This commit moves the condition used by `@DisabledInAotMode` to a concrete implementation rather than using `@DisabledIf` as it causes build initialization in a native image. Closes gh-31705