Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366104

[Vector API] Utils.isNonCapturingLambda can return false positives.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs

      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.

            psandoz Paul Sandoz
            jmarsik Jiri Marsik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: