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

Extended operation modeling array initializers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • repo-babylon
    • core-libs

      From Tagir:

      https://mail.openjdk.org/pipermail/babylon-dev/2024-July/001096.html

      "
      2. The initialized array creation like `int[] data = {1,2,3,4,5}` is somewhat tricky to decompile. It has a block operand, which contains an imperative sequence of constant loads and array stores. Probably some kind of extended op should be provided for this, which is closer to Java source and can be lowered?
      "

      JLS:

      https://docs.oracle.com/javase/specs/jls/se22/html/jls-10.html#jls-10.6

            Unassigned Unassigned
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: