When the JVM runs with -Djdk.internal.lambda.disableEagerInitialization=true, non-capturing lambdas get a static final field LAMBDA_INSTANCE$, which holds the singleton instance of that lambda. The presence of this field causes such lambdas to fail the jdk.internal.vm.vector.Utils#isNonCapturingLambda check.
I ran into this issue when using the Vector API in native-image, where -Djdk.internal.lambda.disableEagerInitialization=true is set by default.
I ran into this issue when using the Vector API in native-image, where -Djdk.internal.lambda.disableEagerInitialization=true is set by default.