Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10952

Investigate JEP 309 CONSTANT_dynamic instruction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • bytecode, Compiler
    • None

    Description

      Java 11 (default target for Groovy 5) adds CONSTANT_dynamic instruction support: https://openjdk.org/jeps/309

      Can this be used to benefit or replace @Lazy or some other Groovy constructs?

      Further discussion can be found for "JEP 309" on google or here are some kotlin tickets:
      https://youtrack.jetbrains.com/issue/KT-41244/JEP-309-Add-constant-dynamic-support-for-lazyinit-fields
      https://youtrack.jetbrains.com/issue/KT-51773/Consider-capability-to-declare-dynamic-constants-in-constant-pool-using-constant-dynamic-bytecode-instruction

      Attachments

        Activity

          People

            Unassigned Unassigned
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: